@la-main-verte/shared-types 1.0.58 → 1.0.60
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 +1 -1
- package/src/home.api.d.ts +14 -0
- package/src/plant.d.ts +9 -1
- package/src/plantFilters.d.ts +22 -0
package/package.json
CHANGED
package/src/home.api.d.ts
CHANGED
|
@@ -156,4 +156,18 @@ export namespace HOME {
|
|
|
156
156
|
export interface Response {
|
|
157
157
|
sections: SectionI[]
|
|
158
158
|
}
|
|
159
|
+
|
|
160
|
+
export interface HeroCardItemI {
|
|
161
|
+
id?: string | null
|
|
162
|
+
mode: HeroCardMode
|
|
163
|
+
title?: string | null
|
|
164
|
+
description?: string | null
|
|
165
|
+
backgroundColor?: string | null
|
|
166
|
+
backgroundImageUrl?: string | null
|
|
167
|
+
previewPlants?: PlantI[]
|
|
168
|
+
ctaLabel?: string | null
|
|
169
|
+
selection?: SelectionI | null
|
|
170
|
+
plant?: PlantI | null
|
|
171
|
+
ctaRoute?: string | null
|
|
172
|
+
}
|
|
159
173
|
}
|
package/src/plant.d.ts
CHANGED
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
import type { TaxonFamilyI } from './taxonFamily'
|
|
2
|
+
/**
|
|
3
|
+
* Range filter value for min/max filters
|
|
4
|
+
*/
|
|
5
|
+
export interface RangeFilterValueI {
|
|
6
|
+
min: number
|
|
7
|
+
max: number
|
|
8
|
+
}
|
|
9
|
+
|
|
2
10
|
/**
|
|
3
11
|
* Plant filter value types
|
|
4
12
|
* Represents the possible values for a single filter
|
|
5
13
|
*/
|
|
6
|
-
export type PlantFilterValueI = string | string[] | number | boolean
|
|
14
|
+
export type PlantFilterValueI = string | string[] | number | boolean | RangeFilterValueI
|
|
7
15
|
|
|
8
16
|
/**
|
|
9
17
|
* Plant attributes for filtering
|
package/src/plantFilters.d.ts
CHANGED
|
@@ -11,9 +11,31 @@ export interface PlantFilterI {
|
|
|
11
11
|
options?: FilterOptionI[] // For select/multiselect
|
|
12
12
|
min?: number // For range
|
|
13
13
|
max?: number // For range
|
|
14
|
+
/** General help text for this filter attribute (always displayed) */
|
|
15
|
+
helpText?: string
|
|
16
|
+
/** Contextual help text based on member profile (displayed when relevant) */
|
|
17
|
+
contextualHelpText?: string
|
|
14
18
|
}
|
|
15
19
|
|
|
16
20
|
export interface FilterOptionI {
|
|
17
21
|
value: string
|
|
18
22
|
label: string
|
|
23
|
+
/** General help text for this option (always displayed) */
|
|
24
|
+
helpText?: string
|
|
25
|
+
/** Contextual help text based on member profile (displayed when relevant) */
|
|
26
|
+
contextualHelpText?: string
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Member context used to generate contextual help texts
|
|
31
|
+
*/
|
|
32
|
+
export interface MemberFilterContextI {
|
|
33
|
+
/** Hardiness zone index (e.g., 30, 40, 50) - null if not available */
|
|
34
|
+
hardinessZoneIndex: number | null
|
|
35
|
+
/** Hardiness zone name (e.g., "4a", "5b") - null if not available */
|
|
36
|
+
hardinessZoneName: string | null
|
|
37
|
+
/** Whether the member has a greenhouse */
|
|
38
|
+
hasGreenhouse: boolean
|
|
39
|
+
/** Whether the member has a balcony */
|
|
40
|
+
hasBalcony: boolean
|
|
19
41
|
}
|