(
req: FastifyRequest<{
Params: { projectId: string };
Querystring: z.infer<typeof zGetTopPagesQuery>;
}>
)
| 242 | }); |
| 243 | |
| 244 | export async function getPages( |
| 245 | req: FastifyRequest<{ |
| 246 | Params: { projectId: string }; |
| 247 | Querystring: z.infer<typeof zGetTopPagesQuery>; |
| 248 | }> |
| 249 | ) { |
| 250 | const projectId = await getProjectId(req as RequestWithProjectParam); |
| 251 | const { timezone } = await getSettingsForProject(projectId); |
| 252 | const { startDate, endDate } = getChartStartEndDate(req.query, timezone); |
| 253 | return overviewService.getTopPages({ projectId, filters: req.query.filters, startDate, endDate, timezone }); |
| 254 | } |
| 255 | |
| 256 | export const zEntryExitQuery = zDateRange.extend({ |
| 257 | mode: z.enum(['entry', 'exit']).default('entry'), |
nothing calls this directly
no test coverage detected