mirror of
https://github.com/umami-software/umami.git
synced 2026-02-12 08:37:13 +01:00
Converted reports and share routes.
This commit is contained in:
parent
dcac7b7c96
commit
6c9f1ad06b
23 changed files with 574 additions and 5 deletions
|
|
@ -30,7 +30,17 @@ export const unitParam = z.string().refine(value => UNIT_TYPES.includes(value),
|
|||
message: 'Invalid unit',
|
||||
});
|
||||
|
||||
export const roleParam = z.string().regex(/team-member|team-view-only|team-manager/);
|
||||
export const roleParam = z.enum(['team-member', 'team-view-only', 'team-manager']);
|
||||
|
||||
export const reportTypeParam = z.enum([
|
||||
'funnel',
|
||||
'insights',
|
||||
'retention',
|
||||
'utm',
|
||||
'goals',
|
||||
'journey',
|
||||
'revenue',
|
||||
]);
|
||||
|
||||
export const filterParams = {
|
||||
url: z.string().optional(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue