@la-main-verte/shared-types 1.0.51 → 1.0.53
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/alert.d.ts +2 -0
- package/src/calendarView.d.ts +2 -0
- package/src/gardenMap.d.ts +12 -4
- package/src/index.ts +0 -1
- package/src/member.d.ts +3 -0
- package/src/note.d.ts +28 -0
- package/src/plant.d.ts +3 -1
- package/src/plantSelection.d.ts +2 -0
- package/src/selection.d.ts +2 -0
- package/src/tag.d.ts +0 -0
- package/src/taggedItem.d.ts +12 -0
package/package.json
CHANGED
package/src/alert.d.ts
CHANGED
package/src/calendarView.d.ts
CHANGED
package/src/gardenMap.d.ts
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import { PlantSelectionI } from './plantSelection.d.ts'
|
|
2
|
-
import { FertilizerI } from './fertilizer.d.ts'
|
|
3
|
-
|
|
4
1
|
/**
|
|
5
2
|
* A gardenMap is a collection of garden zones
|
|
6
3
|
*/
|
|
@@ -20,7 +17,7 @@ export interface GardenZoneI {
|
|
|
20
17
|
diameterInMeters: number
|
|
21
18
|
shape: 'rectangle' | 'circle'
|
|
22
19
|
xPosition: number
|
|
23
|
-
yPosition: number
|
|
20
|
+
yPosition: number
|
|
24
21
|
zIndex: number
|
|
25
22
|
order: number
|
|
26
23
|
totalSurfaceInSquareMeters: number
|
|
@@ -28,6 +25,17 @@ export interface GardenZoneI {
|
|
|
28
25
|
backgroundColor: string
|
|
29
26
|
createdAt: Date
|
|
30
27
|
updatedAt: Date
|
|
28
|
+
/**
|
|
29
|
+
* When set, the garden zone is a subdivision of another garden zone
|
|
30
|
+
* Parent zones are meant to be as eternal as possible.
|
|
31
|
+
* Subdivisions are meant to be created and destroyed on a yearly basis.
|
|
32
|
+
*/
|
|
33
|
+
parent_garden_zone_id: number
|
|
34
|
+
/**
|
|
35
|
+
* Virtual field to check if the garden zone is a subdivision
|
|
36
|
+
* It is a renamed field from parent_garden_zone_id
|
|
37
|
+
*/
|
|
38
|
+
is_subdivision: boolean
|
|
31
39
|
/**
|
|
32
40
|
* Orientation virtual field ONLY USE FOR RECTANGLES
|
|
33
41
|
* --------------------------------
|
package/src/index.ts
CHANGED
package/src/member.d.ts
CHANGED
package/src/note.d.ts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
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/plant.d.ts
CHANGED
|
@@ -35,7 +35,7 @@ export interface PlantI {
|
|
|
35
35
|
hasNoInformation: boolean
|
|
36
36
|
createdAt: Date
|
|
37
37
|
updatedAt: Date
|
|
38
|
-
translatedSunRequirements:
|
|
38
|
+
translatedSunRequirements: 'Plein soleil' | 'Mi-ombre' | 'Ombre' | null
|
|
39
39
|
parent?: PlantI
|
|
40
40
|
children?: PlantI[]
|
|
41
41
|
PlantInventories?: PlantInventoryI[]
|
|
@@ -48,6 +48,8 @@ export interface PlantI {
|
|
|
48
48
|
Selections?: SelectionI[]
|
|
49
49
|
tasks?: TaskI[]
|
|
50
50
|
Images?: ImageI[]
|
|
51
|
+
notes?: NoteI[]
|
|
52
|
+
rotationFamily?: string
|
|
51
53
|
}
|
|
52
54
|
|
|
53
55
|
interface PlantTagI {
|
package/src/plantSelection.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { PlantI } from './plant.d.ts'
|
|
2
|
+
import { SelectionI } from './selection.d.ts'
|
|
2
3
|
|
|
3
4
|
export interface PlantSelectionI {
|
|
4
5
|
id: number
|
|
@@ -8,4 +9,5 @@ export interface PlantSelectionI {
|
|
|
8
9
|
createdAt: Date
|
|
9
10
|
updatedAt: Date
|
|
10
11
|
Plant: PlantI
|
|
12
|
+
Selection: SelectionI
|
|
11
13
|
}
|
package/src/selection.d.ts
CHANGED
package/src/tag.d.ts
ADDED
|
File without changes
|