@la-main-verte/shared-types 1.0.33 → 1.0.34

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.33",
3
+ "version": "1.0.34",
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/apiError.d.ts CHANGED
@@ -13,6 +13,7 @@ export interface ApiErrorI {
13
13
  | 'internal_server_error'
14
14
  | 'resource_already_exists'
15
15
  | 'not_found'
16
+ | 'app_update_required'
16
17
  | string
17
18
  /**
18
19
  * A numerical code that can be used to identify the error
package/src/member.d.ts CHANGED
@@ -35,4 +35,5 @@ export interface MemberI {
35
35
  neverDeletedATask?: boolean
36
36
  neverEditedATask?: boolean
37
37
  finishedOnboarding: boolean
38
+ hasDownloadedNativeApp?: boolean
38
39
  }
package/src/task.d.ts CHANGED
@@ -1,7 +1,61 @@
1
1
  export interface TaskI {
2
+ /** Unique identifier of the task */
3
+ id: number
4
+ /** Name of the task */
2
5
  name: string
6
+ /** Name of the icon associated with the task */
7
+ iconName: string
8
+ /** Color code of the task */
9
+ colourCode: string
10
+ /** Start date of the task */
3
11
  startDate: Date
12
+ /** End date of the task */
13
+ endDate: Date
14
+ /** Indicates if the task is private */
15
+ private: boolean
16
+ }
17
+
18
+ export interface TaskTagI {
19
+ /**
20
+ * Name of the task's tag
21
+ */
22
+ name: string
23
+ /**
24
+ * Color code of the task's tag
25
+ */
26
+ colourCode: string
27
+ /**
28
+ * Name of the icon associated with the task's tag
29
+ */
30
+ iconName?: string
31
+ }
32
+
33
+ /**
34
+ * Data used to create or edit a task
35
+ */
36
+ export interface TaskFormDataI {
37
+ /**
38
+ * Name of the task
39
+ */
40
+ name: string
41
+ /**
42
+ * Start date of the task
43
+ */
44
+ startDate: Date
45
+ /**
46
+ * End date of the task
47
+ */
4
48
  endDate?: Date
5
- colourCode?: string
49
+ /**
50
+ * Color code of the task
51
+ */
52
+ colourCode: string
53
+ /**
54
+ * Name of the icon associated with the task
55
+ */
6
56
  iconName?: string
57
+ /**
58
+ * Indicates if the task is private
59
+ */
60
+ private: boolean
7
61
  }