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

Function squadAnalyticsQueryOptions

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

Source from the content-addressed store, hash-verified

959}
960
961export const squadAnalyticsQueryOptions = ({
962 sourceId,
963}: {
964 sourceId?: string;
965}) => {
966 return {
967 queryKey: [RequestKey.SquadAnalytics, sourceId],
968 queryFn: async () => {
969 const result = await gqlClient.request<{
970 squadAnalytics: SquadAnalytics;
971 }>(SQUAD_ANALYTICS_QUERY, { sourceId });
972
973 return result.squadAnalytics;
974 },
975 enabled: !!sourceId,
976 staleTime: StaleTime.Default,
977 };
978};
979
980export const squadAnalyticsHistoryQueryOptions = ({
981 sourceId,

Callers 3

seedFunction · 0.90
SquadManageAnalyticsFunction · 0.90
useSquadAnalyticsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected