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

Function gscPageDetails

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

Source from the content-addressed store, hash-verified

682export const zGscPageDetailsQuery = zDateRange.extend({ page: z.string().url() });
683
684export async function gscPageDetails(
685 req: FastifyRequest<{ Params: { projectId?: string }; Querystring: z.infer<typeof zGscPageDetailsQuery> }>,
686 reply: FastifyReply
687) {
688 const projectId = await getProjectId(req as RequestWithProjectParam);
689 const { startDate, endDate } = await resolveDates(projectId, req.query);
690 return reply.send(await gscGetPageDetailsCore({ projectId, startDate, endDate, page: req.query.page }));
691}
692
693export async function gscQueries(
694 req: FastifyRequest<{ Params: { projectId?: string }; Querystring: z.infer<typeof zGscLimitQuery> }>,

Callers

nothing calls this directly

Calls 4

gscGetPageDetailsCoreFunction · 0.90
getProjectIdFunction · 0.70
resolveDatesFunction · 0.70
sendMethod · 0.45

Tested by

no test coverage detected