(
req: FastifyRequest<{ Params: { projectId?: string }; Querystring: z.infer<typeof zGscPageDetailsQuery> }>,
reply: FastifyReply
)
| 682 | export const zGscPageDetailsQuery = zDateRange.extend({ page: z.string().url() }); |
| 683 | |
| 684 | export 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 | |
| 693 | export async function gscQueries( |
| 694 | req: FastifyRequest<{ Params: { projectId?: string }; Querystring: z.infer<typeof zGscLimitQuery> }>, |
nothing calls this directly
no test coverage detected