@demind-inc/core 1.7.15 → 1.7.17

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.
@@ -89,6 +89,7 @@ export interface TaskItem {
89
89
  taskId: string;
90
90
  originalTaskId: string;
91
91
  completed?: boolean;
92
+ completedAt?: string;
92
93
  name: string;
93
94
  desc?: string;
94
95
  url?: string;
@@ -106,11 +107,14 @@ export interface TaskItem {
106
107
  deleted?: boolean;
107
108
  category?: TaskCategorySet;
108
109
  recurring?: TaskRecurring;
110
+ activeRecurringId?: string;
109
111
  parentOriginalTaskId?: string;
110
112
  childOrder?: number;
111
113
  rawJson?: any;
112
114
  sortIndex?: number;
113
115
  subTasks?: TaskItem[];
116
+ isRecurringChild?: boolean;
117
+ parentTaskId?: string;
114
118
  priority?: TaskPriority;
115
119
  linkedCalendarWebhookStatus?: WebhookStatusSet;
116
120
  taskWebhookStatus?: WebhookStatusSet;
@@ -119,7 +123,13 @@ export interface TaskItem {
119
123
  todoist?: TaskItemAdditionalParamsTodoist;
120
124
  [key: string]: any;
121
125
  };
122
- completedDates?: string[];
126
+ }
127
+ export interface TaskRecurringInstance extends Omit<TaskItem, "subTasks" | "isRecurringChild" | "parentTaskId"> {
128
+ /** Firestore doc id `${parentTaskId}_${yyyy-MM-dd}` */
129
+ taskId: string;
130
+ parentTaskId: string;
131
+ isRecurringChild: true;
132
+ completedAt?: string;
123
133
  }
124
134
  export interface TaskCategorySet {
125
135
  id: string;
package/dist/types.d.ts CHANGED
@@ -16,6 +16,7 @@ export interface EventEnergySet {
16
16
  energy: EnergyFeedbackType;
17
17
  }
18
18
  export type Chronotype = "morning" | "night" | "hybrid";
19
+ export type ScheduledActionType = "add" | "remove" | "update";
19
20
  export interface HeatmapDataType {
20
21
  x: string;
21
22
  y: string;
@@ -37,6 +38,7 @@ export interface ScheduledAction {
37
38
  logicElement?: ScheduleLogicElement;
38
39
  eventFrom?: ScheduledActionEventFrom;
39
40
  priority?: TaskPriority;
41
+ actionType?: ScheduledActionType;
40
42
  }
41
43
  export interface ScheduledActionOptions {
42
44
  startDate: string;
@@ -101,6 +101,7 @@ export interface TaskItem {
101
101
  taskId: string;
102
102
  originalTaskId: string;
103
103
  completed?: boolean;
104
+ completedAt?: string;
104
105
  name: string;
105
106
  desc?: string;
106
107
  url?: string;
@@ -118,11 +119,14 @@ export interface TaskItem {
118
119
  deleted?: boolean;
119
120
  category?: TaskCategorySet;
120
121
  recurring?: TaskRecurring;
122
+ activeRecurringId?: string;
121
123
  parentOriginalTaskId?: string;
122
124
  childOrder?: number;
123
125
  rawJson?: any;
124
126
  sortIndex?: number;
125
127
  subTasks?: TaskItem[];
128
+ isRecurringChild?: boolean;
129
+ parentTaskId?: string;
126
130
  priority?: TaskPriority;
127
131
  linkedCalendarWebhookStatus?: WebhookStatusSet;
128
132
  taskWebhookStatus?: WebhookStatusSet;
@@ -131,7 +135,15 @@ export interface TaskItem {
131
135
  todoist?: TaskItemAdditionalParamsTodoist;
132
136
  [key: string]: any;
133
137
  };
134
- completedDates?: string[];
138
+ }
139
+
140
+ export interface TaskRecurringInstance
141
+ extends Omit<TaskItem, "subTasks" | "isRecurringChild" | "parentTaskId"> {
142
+ /** Firestore doc id `${parentTaskId}_${yyyy-MM-dd}` */
143
+ taskId: string;
144
+ parentTaskId: string;
145
+ isRecurringChild: true;
146
+ completedAt?: string;
135
147
  }
136
148
 
137
149
  export interface TaskCategorySet {
package/lib/types.ts CHANGED
@@ -62,6 +62,8 @@ export interface EventEnergySet {
62
62
 
63
63
  export type Chronotype = "morning" | "night" | "hybrid";
64
64
 
65
+ export type ScheduledActionType = "add" | "remove" | "update";
66
+
65
67
  export interface HeatmapDataType {
66
68
  x: string;
67
69
  y: string;
@@ -87,6 +89,7 @@ export interface ScheduledAction {
87
89
  logicElement?: ScheduleLogicElement;
88
90
  eventFrom?: ScheduledActionEventFrom;
89
91
  priority?: TaskPriority;
92
+ actionType?: ScheduledActionType;
90
93
  }
91
94
 
92
95
  export interface ScheduledActionOptions {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@demind-inc/core",
3
- "version": "1.7.15",
3
+ "version": "1.7.17",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {