@la-main-verte/shared-types 1.0.61 → 1.0.63

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.61",
3
+ "version": "1.0.63",
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",
@@ -1,3 +1,6 @@
1
+ import { PlantSelectionI } from './plantSelection'
2
+ import { FertilizerI } from './fertilizer'
3
+
1
4
  /**
2
5
  * Available garden map categories across the platform
3
6
  */
@@ -73,6 +76,7 @@ export interface GardenZoneI {
73
76
  * The culture on the GardenZone
74
77
  */
75
78
  GardenZoneCulture?: GardenZoneCultureI
79
+ rotationSuggestion?: string
76
80
  }
77
81
 
78
82
  export interface GardenZoneCultureI {
@@ -102,4 +106,11 @@ export interface GardenZoneCultureI {
102
106
  numberOfSeedsPerAlley?: number
103
107
  fertilizerQuantitySuggested?: string
104
108
  Fertilizer?: FertilizerI
109
+ custom_space_between_seeds_in_cm?: number
110
+ custom_space_between_alley_in_cm?: number
105
111
  }
112
+
113
+ export type UpdateGardenZonePayload = Partial<GardenZoneI> &
114
+ Partial<GardenZoneCultureI> & {
115
+ targetNumberOfPlants?: number
116
+ }
package/src/home.api.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import type { PlantI } from './plant'
2
2
  import type { SelectionI } from './selection'
3
+ import type { TaskI } from './task'
3
4
 
4
5
  export namespace HOME {
5
6
  export type HeroCardMode = 'featuredSelection' | 'featuredPlant'
@@ -13,6 +14,7 @@ export namespace HOME {
13
14
  | 'Weather'
14
15
  | 'AdviceCarousel'
15
16
  | 'OnboardingCard'
17
+ | 'UpcomingTasks'
16
18
 
17
19
  export type CarouselComponentType = Extract<
18
20
  SectionComponentType,
@@ -143,6 +145,51 @@ export namespace HOME {
143
145
  totalStepsCount: number
144
146
  }
145
147
 
148
+ /** Minimal plant info for preview display in grouped tasks */
149
+ export interface TaskPlantPreviewI {
150
+ name: string
151
+ slug: string
152
+ imageURL?: string | null
153
+ }
154
+
155
+ /** Family group info when multiple plants share the same task */
156
+ export interface TaskFamilyGroupI {
157
+ familyName: string
158
+ plantsCount: number
159
+ plants: TaskPlantPreviewI[]
160
+ }
161
+
162
+ export interface UpcomingTaskI {
163
+ task: TaskI
164
+ plantName: string
165
+ plantSlug: string
166
+ plantImageURL?: string | null
167
+ gardenName: string
168
+ gardenCategory: string
169
+ /** If this task is grouped by family */
170
+ familyGroup?: TaskFamilyGroupI
171
+ }
172
+
173
+ export interface UpcomingTaskAdviceI {
174
+ content: string
175
+ taskName: string
176
+ plantName: string
177
+ plantSlug: string
178
+ plantImageURL?: string | null
179
+ gardenName: string
180
+ gardenCategory: string
181
+ task: TaskI
182
+ /** If this task is grouped by family */
183
+ familyGroup?: TaskFamilyGroupI
184
+ }
185
+
186
+ export interface UpcomingTasksSectionI {
187
+ componentType: 'UpcomingTasks'
188
+ title: string
189
+ subtitle?: string
190
+ advices: UpcomingTaskAdviceI[]
191
+ }
192
+
146
193
  export type SectionI =
147
194
  | HeaderSectionI
148
195
  | HeroCardsSectionI
@@ -152,6 +199,7 @@ export namespace HOME {
152
199
  | WeatherSectionI
153
200
  | AdviceSectionI
154
201
  | OnboardingCardSectionI
202
+ | UpcomingTasksSectionI
155
203
 
156
204
  export interface Response {
157
205
  sections: SectionI[]
package/src/note.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { ImageI } from './image.d.ts'
2
2
  import { TaggedItemI } from './taggedItem.d.ts'
3
+ import { MemberI } from './member.d.ts'
3
4
 
4
5
  export interface NoteI {
5
6
  id: number
@@ -25,4 +26,5 @@ export interface NoteI {
25
26
  pastelColor: string
26
27
  Images: ImageI[]
27
28
  TaggedItems: TaggedItemI[]
29
+ Member?: MemberI
28
30
  }