@demind-inc/core 1.10.20 → 1.10.21

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.
@@ -1,10 +1,10 @@
1
- import { DocumentReference } from "@google-cloud/firestore";
2
- import { TodoIntegrationType } from "./TodoIntegrations";
3
- import { TaskLabel } from "./TaskLabels";
4
- import { CircadianPhase } from "../types";
5
- import { AppleRecurrenceRuleFrequency } from "./Calendar";
6
- import { TeamRole } from "./Team";
7
- export type WebhookStatus = "pending" | "synced" | "skipped" | "failed";
1
+ import { DocumentReference } from '@google-cloud/firestore';
2
+ import { TodoIntegrationType } from './TodoIntegrations';
3
+ import { TaskLabel } from './TaskLabels';
4
+ import { CircadianPhase } from '../types';
5
+ import { AppleRecurrenceRuleFrequency } from './Calendar';
6
+ import { TeamRole } from './Team';
7
+ export type WebhookStatus = 'pending' | 'synced' | 'skipped' | 'failed';
8
8
  export interface TodoTasksBoardAdditionalParamsGithub {
9
9
  projectId: string;
10
10
  owner: string;
@@ -61,7 +61,7 @@ export interface TodoTasksBoardList {
61
61
  closed?: boolean;
62
62
  rawJson?: any;
63
63
  }
64
- export type TodoAppFrom = TodoIntegrationType | "lifestack";
64
+ export type TodoAppFrom = TodoIntegrationType | 'lifestack';
65
65
  export interface DateTimeSet {
66
66
  datetime?: string;
67
67
  date?: string;
@@ -76,7 +76,7 @@ export interface TaskRecurring {
76
76
  timezone?: string;
77
77
  recurrenceRule?: string;
78
78
  }
79
- export type TaskPriority = "low" | "medium" | "high" | "none";
79
+ export type TaskPriority = 'low' | 'medium' | 'high' | 'none';
80
80
  export interface TaskItemAdditionalParamsGithub {
81
81
  issueNumber: number;
82
82
  repository: string;
@@ -150,6 +150,7 @@ export interface TaskItem {
150
150
  priority?: TaskPriority;
151
151
  linkedCalendarWebhookStatus?: WebhookStatusSet;
152
152
  taskWebhookStatus?: WebhookStatusSet;
153
+ aiNote?: string;
153
154
  additionalParams?: {
154
155
  github?: TaskItemAdditionalParamsGithub;
155
156
  clickup?: TaskItemAdditionalParamsClickUp;
@@ -158,8 +159,8 @@ export interface TaskItem {
158
159
  [key: string]: any;
159
160
  };
160
161
  }
161
- export type TeamTaskSource = "shared-personal-board" | "team-board";
162
- export type TeamTaskBucket = "overdue" | "today" | "upcoming" | "done";
162
+ export type TeamTaskSource = 'shared-personal-board' | 'team-board';
163
+ export type TeamTaskBucket = 'overdue' | 'today' | 'upcoming' | 'done';
163
164
  export interface TeamTaskMemberSummary {
164
165
  userId: string;
165
166
  teamMemberId?: string;
@@ -199,7 +200,7 @@ export interface TeamTaskTeamSummary {
199
200
  export interface TeamAssignedTaskItem extends TeamTaskItem {
200
201
  team: TeamTaskTeamSummary;
201
202
  }
202
- export interface TaskRecurringInstance extends Omit<TaskItem, "subTasks" | "isRecurringChild" | "parentTaskId"> {
203
+ export interface TaskRecurringInstance extends Omit<TaskItem, 'subTasks' | 'isRecurringChild' | 'parentTaskId'> {
203
204
  /** Firestore doc id `${parentTaskId}_${yyyy-MM-dd}` */
204
205
  taskId: string;
205
206
  parentTaskId: string;
@@ -212,9 +213,9 @@ export interface TaskCategorySet {
212
213
  }
213
214
  export interface TaskItemDuration {
214
215
  amount: number;
215
- unit: "day" | "minute";
216
+ unit: 'day' | 'minute';
216
217
  }
217
- export type SuggestedTaskItem = Pick<TaskItem, "taskId" | "name" | "duration" | "labels" | "boardId" | "appFrom"> & {
218
+ export type SuggestedTaskItem = Pick<TaskItem, 'taskId' | 'name' | 'duration' | 'labels' | 'boardId' | 'appFrom'> & {
218
219
  energyAlignmentScore: number;
219
220
  reasoning: string;
220
221
  suggestedStartTime: string;
@@ -223,7 +224,7 @@ export type SuggestedTaskItem = Pick<TaskItem, "taskId" | "name" | "duration" |
223
224
  suggestedEndDayOffset?: number;
224
225
  priority?: string;
225
226
  };
226
- export type NativeAppleRemindersSource = "Local" | "iCloud";
227
+ export type NativeAppleRemindersSource = 'Local' | 'iCloud';
227
228
  export type NativeAppleRemindersList = {
228
229
  id: string;
229
230
  color: string;
@@ -239,8 +240,8 @@ export type NativeAppleRemindersListArray = NativeAppleRemindersList[];
239
240
  */
240
241
  export type ISODateString = string;
241
242
  export type TimeZoneId = string;
242
- export type Weekday = "SU" | "MO" | "TU" | "WE" | "TH" | "FR" | "SA";
243
- export type Proximity = "enter" | "leave" | "none";
243
+ export type Weekday = 'SU' | 'MO' | 'TU' | 'WE' | 'TH' | 'FR' | 'SA';
244
+ export type Proximity = 'enter' | 'leave' | 'none';
244
245
  export type Priority = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;
245
246
  /** Calendar container metadata for the reminder. */
246
247
  export interface ReminderCalendar {
@@ -1,11 +1,11 @@
1
- import { DocumentReference } from "@google-cloud/firestore";
2
- import { TodoIntegrationType } from "./TodoIntegrations";
3
- import { TaskLabel } from "./TaskLabels";
4
- import { CircadianPhase } from "../types";
5
- import { AppleRecurrenceRuleFrequency } from "./Calendar";
6
- import { TeamRole } from "./Team";
1
+ import { DocumentReference } from '@google-cloud/firestore';
2
+ import { TodoIntegrationType } from './TodoIntegrations';
3
+ import { TaskLabel } from './TaskLabels';
4
+ import { CircadianPhase } from '../types';
5
+ import { AppleRecurrenceRuleFrequency } from './Calendar';
6
+ import { TeamRole } from './Team';
7
7
 
8
- export type WebhookStatus = "pending" | "synced" | "skipped" | "failed";
8
+ export type WebhookStatus = 'pending' | 'synced' | 'skipped' | 'failed';
9
9
 
10
10
  export interface TodoTasksBoardAdditionalParamsGithub {
11
11
  projectId: string;
@@ -69,7 +69,7 @@ export interface TodoTasksBoardList {
69
69
  rawJson?: any;
70
70
  }
71
71
 
72
- export type TodoAppFrom = TodoIntegrationType | "lifestack";
72
+ export type TodoAppFrom = TodoIntegrationType | 'lifestack';
73
73
 
74
74
  export interface DateTimeSet {
75
75
  datetime?: string;
@@ -87,7 +87,7 @@ export interface TaskRecurring {
87
87
  recurrenceRule?: string;
88
88
  }
89
89
 
90
- export type TaskPriority = "low" | "medium" | "high" | "none";
90
+ export type TaskPriority = 'low' | 'medium' | 'high' | 'none';
91
91
  export interface TaskItemAdditionalParamsGithub {
92
92
  issueNumber: number;
93
93
  repository: string;
@@ -167,6 +167,7 @@ export interface TaskItem {
167
167
  priority?: TaskPriority;
168
168
  linkedCalendarWebhookStatus?: WebhookStatusSet;
169
169
  taskWebhookStatus?: WebhookStatusSet;
170
+ aiNote?: string;
170
171
  additionalParams?: {
171
172
  github?: TaskItemAdditionalParamsGithub;
172
173
  clickup?: TaskItemAdditionalParamsClickUp;
@@ -176,9 +177,9 @@ export interface TaskItem {
176
177
  };
177
178
  }
178
179
 
179
- export type TeamTaskSource = "shared-personal-board" | "team-board";
180
+ export type TeamTaskSource = 'shared-personal-board' | 'team-board';
180
181
 
181
- export type TeamTaskBucket = "overdue" | "today" | "upcoming" | "done";
182
+ export type TeamTaskBucket = 'overdue' | 'today' | 'upcoming' | 'done';
182
183
 
183
184
  export interface TeamTaskMemberSummary {
184
185
  userId: string;
@@ -227,7 +228,7 @@ export interface TeamAssignedTaskItem extends TeamTaskItem {
227
228
  }
228
229
 
229
230
  export interface TaskRecurringInstance
230
- extends Omit<TaskItem, "subTasks" | "isRecurringChild" | "parentTaskId"> {
231
+ extends Omit<TaskItem, 'subTasks' | 'isRecurringChild' | 'parentTaskId'> {
231
232
  /** Firestore doc id `${parentTaskId}_${yyyy-MM-dd}` */
232
233
  taskId: string;
233
234
  parentTaskId: string;
@@ -242,12 +243,12 @@ export interface TaskCategorySet {
242
243
 
243
244
  export interface TaskItemDuration {
244
245
  amount: number;
245
- unit: "day" | "minute";
246
+ unit: 'day' | 'minute';
246
247
  }
247
248
 
248
249
  export type SuggestedTaskItem = Pick<
249
250
  TaskItem,
250
- "taskId" | "name" | "duration" | "labels" | "boardId" | "appFrom"
251
+ 'taskId' | 'name' | 'duration' | 'labels' | 'boardId' | 'appFrom'
251
252
  > & {
252
253
  energyAlignmentScore: number;
253
254
  reasoning: string;
@@ -260,7 +261,7 @@ export type SuggestedTaskItem = Pick<
260
261
 
261
262
  /////////////// Apple Reminders ///////////////
262
263
 
263
- export type NativeAppleRemindersSource = "Local" | "iCloud";
264
+ export type NativeAppleRemindersSource = 'Local' | 'iCloud';
264
265
 
265
266
  export type NativeAppleRemindersList = {
266
267
  id: string;
@@ -280,8 +281,8 @@ export type NativeAppleRemindersListArray = NativeAppleRemindersList[];
280
281
 
281
282
  export type ISODateString = string;
282
283
  export type TimeZoneId = string;
283
- export type Weekday = "SU" | "MO" | "TU" | "WE" | "TH" | "FR" | "SA";
284
- export type Proximity = "enter" | "leave" | "none";
284
+ export type Weekday = 'SU' | 'MO' | 'TU' | 'WE' | 'TH' | 'FR' | 'SA';
285
+ export type Proximity = 'enter' | 'leave' | 'none';
285
286
  export type Priority = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;
286
287
 
287
288
  /** Calendar container metadata for the reminder. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@demind-inc/core",
3
- "version": "1.10.20",
3
+ "version": "1.10.21",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {