Add onEmptyFilter
This commit is contained in:
parent
7b789e7853
commit
4324d96833
|
@ -1,6 +1,7 @@
|
||||||
import {
|
import {
|
||||||
ArrayOperator,
|
ArrayOperator,
|
||||||
BasicOperator,
|
BasicOperator,
|
||||||
|
EmptyFilterOption,
|
||||||
LogicalOperator,
|
LogicalOperator,
|
||||||
RangeOperator,
|
RangeOperator,
|
||||||
SearchFilterKey,
|
SearchFilterKey,
|
||||||
|
@ -59,10 +60,13 @@ const queryFilterValidation: Record<SearchFilterKey, z.ZodTypeAny> = {
|
||||||
}
|
}
|
||||||
|
|
||||||
const searchRowRequest = z.object({
|
const searchRowRequest = z.object({
|
||||||
query: z.object({
|
query: z
|
||||||
|
.object({
|
||||||
allOr: z.boolean().optional(),
|
allOr: z.boolean().optional(),
|
||||||
|
onEmptyFilter: z.nativeEnum(EmptyFilterOption).optional(),
|
||||||
...queryFilterValidation,
|
...queryFilterValidation,
|
||||||
}),
|
})
|
||||||
|
.optional(),
|
||||||
paginate: z.boolean().optional(),
|
paginate: z.boolean().optional(),
|
||||||
bookmark: z.union([z.string(), z.number()]).optional(),
|
bookmark: z.union([z.string(), z.number()]).optional(),
|
||||||
limit: z.number().optional(),
|
limit: z.number().optional(),
|
||||||
|
|
Loading…
Reference in New Issue