@la-main-verte/shared-types 1.0.60 → 1.0.62
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/gardenMap.d.ts +1 -0
- package/src/note.d.ts +2 -0
- package/src/plantFilters.d.ts +0 -22
- package/src/users.api.d.ts +16 -0
package/package.json
CHANGED
package/src/gardenMap.d.ts
CHANGED
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
|
}
|
package/src/plantFilters.d.ts
CHANGED
|
@@ -11,31 +11,9 @@ 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
|
|
18
14
|
}
|
|
19
15
|
|
|
20
16
|
export interface FilterOptionI {
|
|
21
17
|
value: string
|
|
22
18
|
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
|
|
41
19
|
}
|
package/src/users.api.d.ts
CHANGED
|
@@ -87,4 +87,20 @@ export namespace USERS {
|
|
|
87
87
|
|
|
88
88
|
export type Response = RecommendationI[]
|
|
89
89
|
}
|
|
90
|
+
export namespace GIFT_CARDS {
|
|
91
|
+
export namespace REDEEM {
|
|
92
|
+
export interface Request {
|
|
93
|
+
headers: RequestHeaders
|
|
94
|
+
body: {
|
|
95
|
+
code: string
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
export interface Response {
|
|
99
|
+
success: boolean
|
|
100
|
+
message?: string
|
|
101
|
+
error?: string
|
|
102
|
+
error_message?: string
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
90
106
|
}
|