(
req: FastifyRequest<{ Params: { projectId?: string }; Querystring: z.infer<typeof zGscQueryDetailsQuery> }>,
reply: FastifyReply
)
| 702 | export const zGscQueryDetailsQuery = zDateRange.extend({ query: z.string() }); |
| 703 | |
| 704 | export async function gscQueryDetails( |
| 705 | req: FastifyRequest<{ Params: { projectId?: string }; Querystring: z.infer<typeof zGscQueryDetailsQuery> }>, |
| 706 | reply: FastifyReply |
| 707 | ) { |
| 708 | const projectId = await getProjectId(req as RequestWithProjectParam); |
| 709 | const { startDate, endDate } = await resolveDates(projectId, req.query); |
| 710 | return reply.send(await gscGetQueryDetailsCore({ projectId, startDate, endDate, query: req.query.query })); |
| 711 | } |
| 712 | |
| 713 | export const zGscOpportunitiesQuery = zDateRange.extend({ minImpressions: z.number().int().min(1).default(50) }); |
| 714 |
nothing calls this directly
no test coverage detected