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

Function squadAnalyticsQueryOptions

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

Source from the content-addressed store, hash-verified

982}
983
984export const squadAnalyticsQueryOptions = ({
985 sourceId,
986}: {
987 sourceId?: string;
988}) => {
989 return {
990 queryKey: [RequestKey.SquadAnalytics, sourceId],
991 queryFn: async () => {
992 const result = await gqlClient.request<{
993 squadAnalytics: SquadAnalytics;
994 }>(SQUAD_ANALYTICS_QUERY, { sourceId });
995
996 return result.squadAnalytics;
997 },
998 enabled: !!sourceId,
999 staleTime: StaleTime.Default,
1000 };
1001};
1002
1003export const squadAnalyticsHistoryQueryOptions = ({
1004 sourceId,

Callers 4

seedFunction · 0.90
SquadManageAnalyticsFunction · 0.90
SquadCompanyValueFunction · 0.90
useSquadAnalyticsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected