MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / getUserFlow

Function getUserFlow

apps/api/src/controllers/insights.controller.ts:431–438  ·  view source on GitHub ↗
(
  req: FastifyRequest<{ Params: { projectId?: string }; Querystring: z.infer<typeof zUserFlowQuery> }>,
  reply: FastifyReply
)

Source from the content-addressed store, hash-verified

429});
430
431export async function getUserFlow(
432 req: FastifyRequest<{ Params: { projectId?: string }; Querystring: z.infer<typeof zUserFlowQuery> }>,
433 reply: FastifyReply
434) {
435 const projectId = await getProjectId(req as RequestWithProjectParam);
436 const { startDate, endDate } = await resolveDates(projectId, req.query);
437 return reply.send(await getUserFlowCore({ projectId, startDate, endDate, ...req.query }));
438}
439
440export async function getEngagement(
441 req: FastifyRequest<{ Params: { projectId?: string } }>,

Callers

nothing calls this directly

Calls 4

getUserFlowCoreFunction · 0.90
getProjectIdFunction · 0.70
resolveDatesFunction · 0.70
sendMethod · 0.45

Tested by

no test coverage detected