@la-main-verte/shared-types 1.0.40 → 1.0.41

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.40",
3
+ "version": "1.0.41",
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/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
@@ -6,6 +6,7 @@ export * from './task'
6
6
  export * from './calendarView'
7
7
  export * from './apiError'
8
8
  export * from './gardenMap'
9
+ export * from './alert'
9
10
  import * as PlantsAPI from './plants.api'
10
11
  import * as UsersAPI from './users.api'
11
12
 
@@ -3,7 +3,7 @@ import type { MemberI as MemberDataI } from './member.d'
3
3
 
4
4
  interface RequestHeaders {
5
5
  'x-session-token': string
6
- 'x-app-version'?: string
6
+ 'x-native-app-version'?: string
7
7
  'x-application-type'?: 'react-native' | 'web'
8
8
  }
9
9