From 3fd7553ce8d63c2308a167bd6d162d74195ec749 Mon Sep 17 00:00:00 2001 From: TekH Date: Thu, 3 Jul 2025 14:16:27 +0200 Subject: [PATCH] Refactor Filter type structure Updated the `Filter` type to include `id` and `label` properties. Removed the `dataType` property and replaced it with a `type` property that utilizes the `Type` type. This enhances the filter's structure by providing unique identification and standardizing data type representation. --- src/client/dd-hub-react/src/api/filter-service.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/client/dd-hub-react/src/api/filter-service.ts b/src/client/dd-hub-react/src/api/filter-service.ts index 6d6cbe8..53eb219 100644 --- a/src/client/dd-hub-react/src/api/filter-service.ts +++ b/src/client/dd-hub-react/src/api/filter-service.ts @@ -1,6 +1,8 @@ export type Type = 'BOOLEAN' | 'DATE' | 'VARCHAR' | 'INTEGER' | 'DECIMAL'; export type Filter = { + id: number; + label: string; name: string; - dataType: Type; + type: Type; }; \ No newline at end of file