mirror of
https://github.com/umami-software/umami.git
synced 2026-02-07 22:27:16 +01:00
Refactored filter parameters.
This commit is contained in:
parent
1a839d1cae
commit
cff2d00536
13 changed files with 291 additions and 123 deletions
|
|
@ -13,7 +13,7 @@ export interface InsightsRequestBody {
|
|||
endDate: string;
|
||||
};
|
||||
fields: { name: string; type: string; label: string }[];
|
||||
filters: { name: string; type: string; filter: string; value: string }[];
|
||||
filters: { name: string; type: string; operator: string; value: string }[];
|
||||
groups: { name: string; type: string }[];
|
||||
}
|
||||
|
||||
|
|
@ -42,7 +42,7 @@ const schema = {
|
|||
yup.object().shape({
|
||||
name: yup.string().required(),
|
||||
type: yup.string().required(),
|
||||
filter: yup.string().required(),
|
||||
operator: yup.string().required(),
|
||||
value: yup.string().required(),
|
||||
}),
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue