@demind-inc/core 1.7.16 → 1.7.18

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.
@@ -20,6 +20,7 @@ export declare const DB_COLLECTION: {
20
20
  TODO_INTEGRATIONS: string;
21
21
  TODO_TASKS: string;
22
22
  TASK_ITEMS: string;
23
+ RECURRING_TASKS: string;
23
24
  TASK_LABELS_GROUP: string;
24
25
  TASK_LABELS: string;
25
26
  PREFERENCES: string;
package/dist/constants.js CHANGED
@@ -21,6 +21,7 @@ exports.DB_COLLECTION = {
21
21
  TODO_INTEGRATIONS: "todoIntegrations",
22
22
  TODO_TASKS: "todoTasks",
23
23
  TASK_ITEMS: "taskItems",
24
+ RECURRING_TASKS: "recurringTasks",
24
25
  TASK_LABELS_GROUP: "taskLabelsGroup",
25
26
  TASK_LABELS: "taskLabels",
26
27
  PREFERENCES: "preferences",
@@ -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,15 @@ 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
+ recurringInstances?: TaskRecurringInstance[];
117
+ isRecurringChild?: boolean;
118
+ parentTaskId?: string;
114
119
  priority?: TaskPriority;
115
120
  linkedCalendarWebhookStatus?: WebhookStatusSet;
116
121
  taskWebhookStatus?: WebhookStatusSet;
@@ -119,7 +124,13 @@ export interface TaskItem {
119
124
  todoist?: TaskItemAdditionalParamsTodoist;
120
125
  [key: string]: any;
121
126
  };
122
- completedDates?: string[];
127
+ }
128
+ export interface TaskRecurringInstance extends Omit<TaskItem, "subTasks" | "isRecurringChild" | "parentTaskId"> {
129
+ /** Firestore doc id `${parentTaskId}_${yyyy-MM-dd}` */
130
+ taskId: string;
131
+ parentTaskId: string;
132
+ isRecurringChild: true;
133
+ completedAt?: string;
123
134
  }
124
135
  export interface TaskCategorySet {
125
136
  id: string;
package/lib/constants.ts CHANGED
@@ -21,6 +21,7 @@ export const DB_COLLECTION = {
21
21
  TODO_INTEGRATIONS: "todoIntegrations",
22
22
  TODO_TASKS: "todoTasks",
23
23
  TASK_ITEMS: "taskItems",
24
+ RECURRING_TASKS: "recurringTasks",
24
25
  TASK_LABELS_GROUP: "taskLabelsGroup",
25
26
  TASK_LABELS: "taskLabels",
26
27
  PREFERENCES: "preferences",
@@ -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,15 @@ 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
+ recurringInstances?: TaskRecurringInstance[];
129
+ isRecurringChild?: boolean;
130
+ parentTaskId?: string;
126
131
  priority?: TaskPriority;
127
132
  linkedCalendarWebhookStatus?: WebhookStatusSet;
128
133
  taskWebhookStatus?: WebhookStatusSet;
@@ -131,7 +136,15 @@ export interface TaskItem {
131
136
  todoist?: TaskItemAdditionalParamsTodoist;
132
137
  [key: string]: any;
133
138
  };
134
- completedDates?: string[];
139
+ }
140
+
141
+ export interface TaskRecurringInstance
142
+ extends Omit<TaskItem, "subTasks" | "isRecurringChild" | "parentTaskId"> {
143
+ /** Firestore doc id `${parentTaskId}_${yyyy-MM-dd}` */
144
+ taskId: string;
145
+ parentTaskId: string;
146
+ isRecurringChild: true;
147
+ completedAt?: string;
135
148
  }
136
149
 
137
150
  export interface TaskCategorySet {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@demind-inc/core",
3
- "version": "1.7.16",
3
+ "version": "1.7.18",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {