From 2cd3ab662793b19b182b3ef9aa540fbe7b97d742 Mon Sep 17 00:00:00 2001 From: Sam Rose Date: Tue, 22 Oct 2024 10:35:09 +0100 Subject: [PATCH] Respond to PR comments. --- packages/shared-core/src/utils.ts | 2 +- packages/types/src/api/web/searchFilter.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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