Refactored filter parameters.
This commit is contained in:
@@ -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