From 61ed093080b4756f241545d168b686aa6a5e1610 Mon Sep 17 00:00:00 2001
From: Hannah Holzheu <hh062@hdm-stuttgart.de>
Date: Fri, 15 Dec 2023 21:28:46 +0100
Subject: [PATCH] introduced enums

---
 .../src/{types => utils}/commonTypes.d.ts     | 22 ++++++++++++++-----
 growbros-frontend/src/utils/enums.ts          | 15 +++++++++++++
 2 files changed, 32 insertions(+), 5 deletions(-)
 rename growbros-frontend/src/{types => utils}/commonTypes.d.ts (51%)
 create mode 100644 growbros-frontend/src/utils/enums.ts

diff --git a/growbros-frontend/src/types/commonTypes.d.ts b/growbros-frontend/src/utils/commonTypes.d.ts
similarity index 51%
rename from growbros-frontend/src/types/commonTypes.d.ts
rename to growbros-frontend/src/utils/commonTypes.d.ts
index a36ef2b..f5abf38 100644
--- a/growbros-frontend/src/types/commonTypes.d.ts
+++ b/growbros-frontend/src/utils/commonTypes.d.ts
@@ -10,10 +10,10 @@ type plant = {
     plantWeekEnd: number;
     harvestWeekStart: number;
     harvestWeekEnd: number;
-    groundType: string;
-    nutrientDemand: string;
-    waterDemand: string;
-    lightingDemand: string;
+    groundType: GroundType;
+    nutrientDemand: NutrientDemand;
+    waterDemand: WaterDemand;
+    lightingDemand: LightingDemand;
     imageUrl: string;
   };
 
@@ -27,4 +27,16 @@ type propsSliderFilter = {
     topic: string;
     min: number;
     max: number;
-  };
\ No newline at end of file
+  };
+
+type searchRequest= {
+    searchTerm: string,
+    waterDemand: WaterDemand,
+    nutrientDemand: NutrientDemand,
+    groundType: GroundType,
+    lightingDemand: LightingDemand,
+    plantWeekStart: string,
+    plantWeekEnd: string,
+    growthDurationMin: number,
+    growthDurationMax: number
+  }
\ No newline at end of file
diff --git a/growbros-frontend/src/utils/enums.ts b/growbros-frontend/src/utils/enums.ts
new file mode 100644
index 0000000..3e6ddfb
--- /dev/null
+++ b/growbros-frontend/src/utils/enums.ts
@@ -0,0 +1,15 @@
+enum GroundType{
+
+}
+
+enum NutrientDemand{
+    
+}
+
+enum WaterDemand{
+    DRY= "Trocken",
+    WET= "Feucht",
+    VERY_WET= "Sehr Feucht"
+}
+
+enum LightingDemand{}
\ No newline at end of file
-- 
GitLab