@la-main-verte/shared-types 1.0.86 → 1.0.88

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.86",
3
+ "version": "1.0.88",
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/member.d.ts CHANGED
@@ -89,6 +89,7 @@ export interface PrivateMemberI {
89
89
  email: string
90
90
  city?: string
91
91
  unitSystem: 'imperial' | 'metric'
92
+ language: 'fr-CA' | 'en-CA'
92
93
  gardenZoneTimelessPreference?: boolean
93
94
  firstFreezingDate?: Date
94
95
  lastFreezingDate?: Date
@@ -116,6 +117,15 @@ export interface PrivateMemberI {
116
117
  neverEditedATask?: boolean
117
118
  neverTriedAiAgent?: boolean
118
119
  neverTriedSpacingSection?: boolean
120
+ /**
121
+ * Newsletter opt-in.
122
+ * - true: opted in → never ask again
123
+ * - false: refused in-app → re-askable after a cooldown
124
+ * - null: never asked → ask now
125
+ */
126
+ marketingConsent?: boolean | null
127
+ /** When marketingConsent was last set. Drives the re-ask cooldown. */
128
+ marketingConsentUpdatedAt?: Date | null
119
129
  /**
120
130
  * True when the member belongs to the "very active" audience (~14 days of
121
131
  * distinct activity). Only present when GET /users is called with the
@@ -111,6 +111,8 @@ export namespace USERS {
111
111
  lastOrganicMatterPercentage?: number
112
112
  unitSystem?: 'imperial' | 'metric'
113
113
  gardenZoneTimelessPreference?: boolean
114
+ /** Newsletter consent set from the in-app prompt. true = opt in, false = refused. */
115
+ marketingConsent?: boolean
114
116
  }
115
117
  }
116
118
  export type Response = PrivateMemberI