(
req: FastifyRequest<{ Params: { projectId?: string }; Querystring: z.infer<typeof zGscOverviewQuery> }>,
reply: FastifyReply
)
| 660 | }); |
| 661 | |
| 662 | export 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 | |
| 671 | export const zGscLimitQuery = zDateRange.extend({ limit: z.number().int().min(1).max(1000).default(100) }); |
| 672 |
nothing calls this directly
no test coverage detected