@la-main-verte/shared-types 1.0.5 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@la-main-verte/shared-types",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "Shared TypeScript interfaces for frontend of la-main-verte app",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
package/src/plant.d.ts CHANGED
@@ -40,4 +40,12 @@ export interface PlantI {
40
40
  children?: PlantI[]
41
41
  plantInventories?: PlantInventoryI[]
42
42
  taggedItems?: TaggedItemI[]
43
+ plantTags?: PlantTagI[]
44
+ }
45
+
46
+ interface plantTagI {
47
+ name: string
48
+ fontColor: string
49
+ backgroundColor: string
50
+ icon: string
43
51
  }
package/src/task.d.ts CHANGED
@@ -1,12 +1,10 @@
1
1
  export interface TaskI {
2
2
  id: number
3
- plantSelectionId: number
4
3
  name: string
5
4
  startDate: Date
6
- endDate: Date
7
- colourCode: string
5
+ endDate?: Date
6
+ colourCode?: string
7
+ iconName?: string
8
8
  createdAt: Date
9
9
  updatedAt: Date
10
- plantSelection?: PlantSelectionI
11
- taggedItems?: TaggedItemI[]
12
10
  }