diff --git a/packages/shared-core/src/utils.ts b/packages/shared-core/src/utils.ts index 2bfd166414..0af27d4e81 100644 --- a/packages/shared-core/src/utils.ts +++ b/packages/shared-core/src/utils.ts @@ -12,7 +12,7 @@ import * as Constants from "./constants" import { removeKeyNumbering, splitFiltersArray } from "./filters" import _ from "lodash" -const FILTER_ALLOWED_KEYS = [ +const FILTER_ALLOWED_KEYS: (keyof SearchFilter)[] = [ "field", "operator", "value", diff --git a/packages/types/src/api/web/searchFilter.ts b/packages/types/src/api/web/searchFilter.ts index b21484f6ed..7a6920fb60 100644 --- a/packages/types/src/api/web/searchFilter.ts +++ b/packages/types/src/api/web/searchFilter.ts @@ -30,6 +30,8 @@ export type SearchFilter = { type?: FieldType externalType?: string noValue?: boolean + valueType?: string + formulaType?: string } // Prior to v2, this is the type the frontend sent us when filters were