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

Function gscOverview

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

Source from the content-addressed store, hash-verified

660});
661
662export async function gscOverview(
663 req: FastifyRequest<{ Params: { projectId?: string }; Querystring: z.infer<typeof zGscOverviewQuery> }>,
664 reply: FastifyReply
665) {
666 const projectId = await getProjectId(req as RequestWithProjectParam);
667 const { startDate, endDate } = await resolveDates(projectId, req.query);
668 return reply.send(await gscGetOverviewCore({ projectId, startDate, endDate, interval: req.query.interval }));
669}
670
671export const zGscLimitQuery = zDateRange.extend({ limit: z.number().int().min(1).max(1000).default(100) });
672

Callers

nothing calls this directly

Calls 4

gscGetOverviewCoreFunction · 0.90
getProjectIdFunction · 0.70
resolveDatesFunction · 0.70
sendMethod · 0.45

Tested by

no test coverage detected