@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 +1 -1
- package/src/image.d.ts +10 -0
- package/src/index.ts +1 -0
- package/src/member.d.ts +6 -0
- package/src/plant.d.ts +1 -0
- package/src/plants.api.d.ts +8 -1
package/package.json
CHANGED
package/src/image.d.ts
ADDED
package/src/index.ts
CHANGED
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
package/src/plants.api.d.ts
CHANGED
|
@@ -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
|
|