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

Function squadAnalyticsQueryOptions

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

Source from the content-addressed store, hash-verified

973}
974
975export const squadAnalyticsQueryOptions = ({
976 sourceId,
977}: {
978 sourceId?: string;
979}) => {
980 return {
981 queryKey: [RequestKey.SquadAnalytics, sourceId],
982 queryFn: async () => {
983 const result = await gqlClient.request<{
984 squadAnalytics: SquadAnalytics;
985 }>(SQUAD_ANALYTICS_QUERY, { sourceId });
986
987 return result.squadAnalytics;
988 },
989 enabled: !!sourceId,
990 staleTime: StaleTime.Default,
991 };
992};
993
994export const squadAnalyticsHistoryQueryOptions = ({
995 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