@la-main-verte/shared-types 1.0.49 → 1.0.50
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/calendarView.d.ts +0 -2
- package/src/device.d.ts +1 -2
- package/src/fertilizer.d.ts +19 -0
- package/src/gardenMap.d.ts +3 -0
- package/src/index.ts +1 -3
- package/src/member.d.ts +0 -3
- package/src/plant.d.ts +0 -7
- package/src/plantSelection.d.ts +3 -0
- package/src/plants.api.d.ts +1 -0
- package/src/selection.d.ts +0 -2
- package/src/note.d.ts +0 -28
- package/src/tag.d.ts +0 -9
- package/src/taggedItem.d.ts +0 -12
package/package.json
CHANGED
package/src/calendarView.d.ts
CHANGED
package/src/device.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Raw Data returned by the device model
|
|
3
3
|
* Device.toJSON() will return this data
|
|
4
4
|
*/
|
|
5
|
-
|
|
5
|
+
export interface DeviceDataI {
|
|
6
6
|
/** Unique identifier for the device */
|
|
7
7
|
id: string
|
|
8
8
|
/** Identifier for the user associated with the device (UUID) */
|
|
@@ -38,4 +38,3 @@ type DeviceDataI = {
|
|
|
38
38
|
/** Virtual field that combines the name and appVersion */
|
|
39
39
|
fullName: string
|
|
40
40
|
}
|
|
41
|
-
export { DeviceDataI }
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export interface FertilizerI {
|
|
2
|
+
id: number
|
|
3
|
+
name: string
|
|
4
|
+
slug: string
|
|
5
|
+
azotePercentage: number
|
|
6
|
+
phosphorePercentage: number
|
|
7
|
+
potassiumPercentage: number
|
|
8
|
+
/**
|
|
9
|
+
* The real azote percentage is the azote percentage multiplied by the azote efficiency.
|
|
10
|
+
*/
|
|
11
|
+
realAzotePercentage: number
|
|
12
|
+
/**
|
|
13
|
+
* The azote efficiency is a percentage number between 0 and 1.
|
|
14
|
+
* Its how efficient the mineralization of the azote is.
|
|
15
|
+
*/
|
|
16
|
+
azoteEfficiency: number
|
|
17
|
+
imageLocation: string
|
|
18
|
+
quantitySuggested: string
|
|
19
|
+
}
|
package/src/gardenMap.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { PlantSelectionI } from './plantSelection.d.ts'
|
|
2
|
+
import { FertilizerI } from './fertilizer.d.ts'
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* A gardenMap is a collection of garden zones
|
|
@@ -49,6 +50,7 @@ export interface GardenZoneCultureI {
|
|
|
49
50
|
plantSelectionId: number
|
|
50
51
|
seedQuantity: number
|
|
51
52
|
densityMode: 'dense' | 'sparse' | 'custom'
|
|
53
|
+
fertilizerId: number
|
|
52
54
|
/**
|
|
53
55
|
* The year of the culture - do not use it yet.
|
|
54
56
|
* @deprecated Potentially a mistake to have this field here
|
|
@@ -68,4 +70,5 @@ export interface GardenZoneCultureI {
|
|
|
68
70
|
*/
|
|
69
71
|
numberOfSeedsPerAlley?: number
|
|
70
72
|
fertilizerQuantitySuggested?: string
|
|
73
|
+
Fertilizer?: FertilizerI
|
|
71
74
|
}
|
package/src/index.ts
CHANGED
|
@@ -8,9 +8,7 @@ export * from './apiError'
|
|
|
8
8
|
export * from './gardenMap'
|
|
9
9
|
export * from './alert'
|
|
10
10
|
export * from './image'
|
|
11
|
-
export * from './
|
|
12
|
-
export * from './taggedItem'
|
|
13
|
-
export * from './tag'
|
|
11
|
+
export * from './fertilizer'
|
|
14
12
|
import * as PlantsAPI from './plants.api'
|
|
15
13
|
import * as UsersAPI from './users.api'
|
|
16
14
|
|
package/src/member.d.ts
CHANGED
package/src/plant.d.ts
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
import { ImageI } from './image.d.ts'
|
|
2
|
-
import { SelectionI } from './selection.d.ts'
|
|
3
|
-
import { TaskI } from './task.d.ts'
|
|
4
|
-
import { TaggedItemI } from './taggedItem.d.ts'
|
|
5
|
-
import { NoteI } from './note.js'
|
|
6
|
-
|
|
7
1
|
export interface PlantI {
|
|
8
2
|
id: number
|
|
9
3
|
name: string
|
|
@@ -54,7 +48,6 @@ export interface PlantI {
|
|
|
54
48
|
Selections?: SelectionI[]
|
|
55
49
|
tasks?: TaskI[]
|
|
56
50
|
Images?: ImageI[]
|
|
57
|
-
notes?: NoteI[]
|
|
58
51
|
}
|
|
59
52
|
|
|
60
53
|
interface PlantTagI {
|
package/src/plantSelection.d.ts
CHANGED
package/src/plants.api.d.ts
CHANGED
package/src/selection.d.ts
CHANGED
package/src/note.d.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { ImageI } from './image.d.ts'
|
|
2
|
-
import { TaggedItemI } from './taggedItem.d.ts'
|
|
3
|
-
|
|
4
|
-
export interface NoteI {
|
|
5
|
-
id: number
|
|
6
|
-
memberId: number
|
|
7
|
-
title: string
|
|
8
|
-
contentInMarkdown: string
|
|
9
|
-
color?: string
|
|
10
|
-
agreedToShare: boolean
|
|
11
|
-
createdAt: Date
|
|
12
|
-
updatedAt: Date
|
|
13
|
-
/**
|
|
14
|
-
* Virtual field for the note thumbnail imageURL (absolute path) */
|
|
15
|
-
imageURL?: string
|
|
16
|
-
/**
|
|
17
|
-
* Virtual field indicating if the note content is short
|
|
18
|
-
* Used to alter the design of the note (likely with ContentInMarkdown replacing the title)
|
|
19
|
-
* */
|
|
20
|
-
hasShortContent?: boolean
|
|
21
|
-
/**
|
|
22
|
-
* Virtual field for the note sharing URL (relative path) */
|
|
23
|
-
sharingURL: string
|
|
24
|
-
darkColor: string
|
|
25
|
-
pastelColor: string
|
|
26
|
-
Images: ImageI[]
|
|
27
|
-
TaggedItems: TaggedItemI[]
|
|
28
|
-
}
|
package/src/tag.d.ts
DELETED