From e44e83eb57645badef4460903cd8266a35a57a62 Mon Sep 17 00:00:00 2001
From: Simon Malesys <simon.malesys@pasteur.fr>
Date: Mon, 31 Mar 2025 16:18:04 +0200
Subject: [PATCH] Less constraints for the filters types

---
 src/client/types.ts | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/client/types.ts b/src/client/types.ts
index 578ea22..4019dd5 100644
--- a/src/client/types.ts
+++ b/src/client/types.ts
@@ -95,10 +95,10 @@ export interface Statistics {
  */
 export interface APIFilters {
   keywords: string
-  species: Array<Antibody['species']>
-  sources: Array<FastaHeader['source']>
-  heavySegments: Array<FastaHeader['vGeneSegment']>
-  lightSegments: Array<FastaHeader['vGeneSegment']>
+  species: Array<string>
+  sources: Array<string>
+  heavySegments: Array<string>
+  lightSegments: Array<string>
   motif: string
 }
 
@@ -172,10 +172,10 @@ export interface APIUserMadeArchiveResponse {
  * @link https://www.typescriptlang.org/docs/handbook/2/objects.html#excess-property-checks
  */
 export type AdvancedFilters = {
-  species: Array<Antibody['species']>
-  sources: Array<FastaHeader['source']>
-  heavySegments: Array<FastaHeader['vGeneSegment']>
-  lightSegments: Array<FastaHeader['vGeneSegment']>
+  species: Array<string>
+  sources: Array<string>
+  heavySegments: Array<string>
+  lightSegments: Array<string>
   motif: string
 }
 
-- 
GitLab