@la-main-verte/shared-types 1.0.53 → 1.0.54

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.53",
3
+ "version": "1.0.54",
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/alert.d.ts CHANGED
@@ -8,6 +8,7 @@ export interface AlertI {
8
8
  */
9
9
  iconColor: string
10
10
  message: string
11
+ published_at?: Date
11
12
  }
12
13
 
13
14
  export interface AlertTagI {
package/src/device.d.ts CHANGED
@@ -7,12 +7,16 @@ export interface DeviceDataI {
7
7
  id: string
8
8
  /** Identifier for the user associated with the device (UUID) */
9
9
  memberId: string
10
- /** Optional push notification key */
10
+ /** Expo Push Notification Key */
11
11
  pushKey?: string
12
+ /** Apple Push Notification Service Token */
13
+ apnsToken?: string
14
+ /** Firebase (Android) Cloud Messaging Token */
15
+ fcmToken?: string
12
16
  /** Unique identifier for the device (UUID) */
13
17
  uuid: string
14
18
  /** RAW User agent string from the device */
15
- userAgent: string
19
+ userAgent?: string
16
20
  /** Optional platform (e.g., 'ios', 'android', 'windows') */
17
21
  platform?: 'ios' | 'android' | 'windows'
18
22
  /** Optional version of the device */
@@ -36,6 +36,7 @@ export interface GardenZoneI {
36
36
  * It is a renamed field from parent_garden_zone_id
37
37
  */
38
38
  is_subdivision: boolean
39
+ has_subdivisions: boolean
39
40
  /**
40
41
  * Orientation virtual field ONLY USE FOR RECTANGLES
41
42
  * --------------------------------
package/src/index.ts CHANGED
@@ -8,6 +8,9 @@ export * from './apiError'
8
8
  export * from './gardenMap'
9
9
  export * from './alert'
10
10
  export * from './image'
11
+ export * from './note'
12
+ export * from './taggedItem'
13
+ export * from './fertilizer'
11
14
  import * as PlantsAPI from './plants.api'
12
15
  import * as UsersAPI from './users.api'
13
16
 
@@ -31,6 +31,8 @@ export namespace USERS {
31
31
  name?: DeviceDataI['name']
32
32
  appVersion?: DeviceDataI['appVersion']
33
33
  pushKey?: DeviceDataI['pushKey']
34
+ apnsToken?: DeviceDataI['apnsToken']
35
+ fcmToken?: DeviceDataI['fcmToken']
34
36
  }
35
37
  }
36
38
  export type Response = DeviceDataI