@la-main-verte/shared-types 1.0.46 → 1.0.48

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.46",
3
+ "version": "1.0.48",
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/image.d.ts ADDED
@@ -0,0 +1,10 @@
1
+ export interface ImageI {
2
+ id: number
3
+ noteId: number
4
+ s3Key: string
5
+ s3Url: string
6
+ filename: string
7
+ imageURL: string
8
+ createdAt: Date
9
+ updatedAt: Date
10
+ }
package/src/index.ts CHANGED
@@ -7,6 +7,7 @@ export * from './calendarView'
7
7
  export * from './apiError'
8
8
  export * from './gardenMap'
9
9
  export * from './alert'
10
+ export * from './image'
10
11
  import * as PlantsAPI from './plants.api'
11
12
  import * as UsersAPI from './users.api'
12
13
 
package/src/member.d.ts CHANGED
@@ -43,10 +43,16 @@ export interface MemberI {
43
43
  finishedOnboarding: boolean
44
44
  hasDownloadedNativeApp?: boolean
45
45
  unitSystem: 'imperial' | 'metric'
46
+ subscriptionEndDate?: Date
46
47
  /**
47
48
  * Virtual field to get the app badge count
48
49
  * ----------------------------------------
49
50
  * For now, it's just the number of unread messages.
50
51
  */
51
52
  badgeCount?: number
53
+ /**
54
+ * Number of unread alerts, cached version of unread alerts (the table) count
55
+ */
56
+ unreadAlertsCount?: number
57
+ isAdmin: boolean
52
58
  }
package/src/plant.d.ts CHANGED
@@ -47,6 +47,7 @@ export interface PlantI {
47
47
  */
48
48
  Selections?: SelectionI[]
49
49
  tasks?: TaskI[]
50
+ Images?: ImageI[]
50
51
  }
51
52
 
52
53
  interface PlantTagI {
@@ -1,7 +1,14 @@
1
1
  import { PlantI, PlantTagI } from './plant.d'
2
2
  import { SelectionI } from './selection.d'
3
-
3
+ import { ImageDataI } from './image.d'
4
4
  interface PlantExtendedDataI extends PlantI {
5
+ /**
6
+ * Future plant images gallery for now using notes as a proxy
7
+ */
8
+ Images: ImageDataI[]
9
+ /**
10
+ * Selections of the plant
11
+ */
5
12
  Selections: SelectionI[]
6
13
  }
7
14