Refactored filter parameters.
This commit is contained in:
1 parent
1a839d1cae
commit
cff2d00536
13 files changed
+291
-123
No files matched your search
@@ -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(),
|
||||
}),
|
||||
),
|
||||
|
||||
Reference in new issue
Block a user