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 a36ef2be0b09a82c9c1ddb9cb6de9d7e72d37141..f5abf38a80f8f9288ad0b6e13bebf086dd578394 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 0000000000000000000000000000000000000000..3e6ddfb153d56c9977968600e751eaa042fca832 --- /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