@la-main-verte/shared-types 1.0.40 → 1.0.42
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 +25 -0
- package/src/index.ts +1 -0
- package/src/plants.api.d.ts +2 -2
- package/src/users.api.d.ts +1 -1
package/package.json
CHANGED
package/src/alert.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export interface AlertI {
|
|
2
|
+
id: number
|
|
3
|
+
tags: AlertTagI[]
|
|
4
|
+
icon: IconName
|
|
5
|
+
/**
|
|
6
|
+
* ColourCode of the icon
|
|
7
|
+
* Ex: #ffffff
|
|
8
|
+
*/
|
|
9
|
+
iconColor: string
|
|
10
|
+
message: string
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface AlertTagI {
|
|
14
|
+
name: string
|
|
15
|
+
/**
|
|
16
|
+
* ColourCode of the alert tag background
|
|
17
|
+
* Ex: #ffffff
|
|
18
|
+
*/
|
|
19
|
+
backgroundColor: string
|
|
20
|
+
/**
|
|
21
|
+
* ColourCode of the alert tag text
|
|
22
|
+
* Ex: #ffffff
|
|
23
|
+
*/
|
|
24
|
+
textColor: string
|
|
25
|
+
}
|
package/src/index.ts
CHANGED
package/src/plants.api.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ export namespace PLANTS {
|
|
|
19
19
|
/**
|
|
20
20
|
* Response containing recommended plants with their tags
|
|
21
21
|
*/
|
|
22
|
-
export type Response =
|
|
22
|
+
export type Response = PlantExtendedDataI[]
|
|
23
23
|
}
|
|
24
24
|
export namespace SEARCH {
|
|
25
25
|
/**
|
|
@@ -42,6 +42,6 @@ export namespace PLANTS {
|
|
|
42
42
|
/**
|
|
43
43
|
* Response containing search plants with their tags
|
|
44
44
|
*/
|
|
45
|
-
export type Response =
|
|
45
|
+
export type Response = PlantExtendedDataI[]
|
|
46
46
|
}
|
|
47
47
|
}
|