@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@la-main-verte/shared-types",
3
- "version": "1.0.60",
3
+ "version": "1.0.62",
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",
@@ -73,6 +73,7 @@ export interface GardenZoneI {
73
73
  * The culture on the GardenZone
74
74
  */
75
75
  GardenZoneCulture?: GardenZoneCultureI
76
+ rotationSuggestion?: string
76
77
  }
77
78
 
78
79
  export interface GardenZoneCultureI {
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
  }
@@ -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
  }
@@ -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
  }