mirror of
https://github.com/umami-software/umami.git
synced 2026-02-08 22:57:12 +01:00
Added journey page. Removed dashboard.
This commit is contained in:
parent
3847e32f39
commit
cee05d762c
24 changed files with 328 additions and 422 deletions
|
|
@ -110,6 +110,15 @@ export const funnelReportSchema = z.object({
|
|||
}),
|
||||
});
|
||||
|
||||
export const journeyReportSchema = z.object({
|
||||
type: z.literal('journey'),
|
||||
parameters: z.object({
|
||||
steps: z.coerce.number().positive(),
|
||||
startStep: z.string().optional(),
|
||||
endStep: z.string().optional(),
|
||||
}),
|
||||
});
|
||||
|
||||
export const reportBaseSchema = z.object({
|
||||
websiteId: z.string().uuid(),
|
||||
type: reportTypeParam,
|
||||
|
|
@ -120,6 +129,7 @@ export const reportBaseSchema = z.object({
|
|||
export const reportTypeSchema = z.discriminatedUnion('type', [
|
||||
goalReportSchema,
|
||||
funnelReportSchema,
|
||||
journeyReportSchema,
|
||||
]);
|
||||
|
||||
export const reportSchema = z.intersection(reportBaseSchema, reportTypeSchema);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue