@demind-inc/core 1.3.51 → 1.4.0

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.
@@ -17,6 +17,8 @@ export declare const DB_COLLECTION: {
17
17
  TODO_INTEGRATIONS: string;
18
18
  TODO_TASKS: string;
19
19
  TASK_ITEMS: string;
20
+ TASK_LABELS_GROUP: string;
21
+ TASK_LABELS: string;
20
22
  PREFERENCES: string;
21
23
  CALENDLY_INTEGRATIONS: string;
22
24
  DATA_TREND: string;
package/dist/constants.js CHANGED
@@ -18,6 +18,8 @@ exports.DB_COLLECTION = {
18
18
  TODO_INTEGRATIONS: "todoIntegrations",
19
19
  TODO_TASKS: "todoTasks",
20
20
  TASK_ITEMS: "taskItems",
21
+ TASK_LABELS_GROUP: "taskLabelsGroup",
22
+ TASK_LABELS: "taskLabels",
21
23
  PREFERENCES: "preferences",
22
24
  CALENDLY_INTEGRATIONS: "calendlyIntegrations",
23
25
  DATA_TREND: "dataTrend",
@@ -1,4 +1,4 @@
1
- import { CalendarType } from "./Calendar";
1
+ import { CalendarEventShowAs, CalendarType } from "./Calendar";
2
2
  export interface Preferences {
3
3
  preferenceId: string;
4
4
  energy?: EnergyPreference;
@@ -19,10 +19,9 @@ export interface CalendarPreference {
19
19
  exportToCalendars?: ExportToCalendars;
20
20
  defaultCalendarId?: string;
21
21
  transparency?: {
22
- aiScheduler?: CustomTransparency;
22
+ aiScheduler?: CalendarEventShowAs;
23
23
  };
24
24
  }
25
- export type CustomTransparency = "free" | "busy";
26
25
  export interface SchedulerPreference {
27
26
  workTime?: SchedulerItemPreference;
28
27
  deepWork?: SchedulerItemPreference;
@@ -0,0 +1,10 @@
1
+ export interface TaskLabelGroup {
2
+ taskLabelGroupId: string;
3
+ taskLabels: TaskLabel[];
4
+ userId: string;
5
+ }
6
+ export interface TaskLabel {
7
+ name: string;
8
+ color?: string;
9
+ id?: string;
10
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +1,6 @@
1
1
  import { DocumentReference } from "@google-cloud/firestore";
2
2
  import { TodoIntegrationType } from "./TodoIntegrations";
3
+ import { TaskLabel } from "./TaskLabels";
3
4
  export interface TodoTasksBoard {
4
5
  todoTaskId: string;
5
6
  originalBoardId: string;
@@ -20,10 +21,6 @@ export interface TodoTasksBoardList {
20
21
  rawJson?: any;
21
22
  }
22
23
  export type TodoAppFrom = TodoIntegrationType | "lifestack";
23
- export interface TaskLabel {
24
- name: string;
25
- color?: string;
26
- }
27
24
  export interface DateTimeSet {
28
25
  datetime?: string;
29
26
  date?: string;
@@ -11,3 +11,4 @@ export * from "./CalendlyIntegrations";
11
11
  export * from "./DataTrend";
12
12
  export * from "./DeviceGroup";
13
13
  export * from "./Discount";
14
+ export * from "./TaskLabels";
@@ -27,3 +27,4 @@ __exportStar(require("./CalendlyIntegrations"), exports);
27
27
  __exportStar(require("./DataTrend"), exports);
28
28
  __exportStar(require("./DeviceGroup"), exports);
29
29
  __exportStar(require("./Discount"), exports);
30
+ __exportStar(require("./TaskLabels"), exports);
package/lib/constants.ts CHANGED
@@ -18,6 +18,8 @@ export const DB_COLLECTION = {
18
18
  TODO_INTEGRATIONS: "todoIntegrations",
19
19
  TODO_TASKS: "todoTasks",
20
20
  TASK_ITEMS: "taskItems",
21
+ TASK_LABELS_GROUP: "taskLabelsGroup",
22
+ TASK_LABELS: "taskLabels",
21
23
  PREFERENCES: "preferences",
22
24
  CALENDLY_INTEGRATIONS: "calendlyIntegrations",
23
25
  DATA_TREND: "dataTrend",
@@ -1,5 +1,5 @@
1
1
  import { TimePhase } from "../types";
2
- import { CalendarType } from "./Calendar";
2
+ import { CalendarEventShowAs, CalendarType } from "./Calendar";
3
3
 
4
4
  export interface Preferences {
5
5
  preferenceId: string;
@@ -24,12 +24,10 @@ export interface CalendarPreference {
24
24
  exportToCalendars?: ExportToCalendars;
25
25
  defaultCalendarId?: string;
26
26
  transparency?: {
27
- aiScheduler?: CustomTransparency;
27
+ aiScheduler?: CalendarEventShowAs;
28
28
  };
29
29
  }
30
30
 
31
- export type CustomTransparency = "free" | "busy";
32
-
33
31
  export interface SchedulerPreference {
34
32
  workTime?: SchedulerItemPreference;
35
33
  deepWork?: SchedulerItemPreference;
@@ -0,0 +1,11 @@
1
+ export interface TaskLabelGroup {
2
+ taskLabelGroupId: string;
3
+ taskLabels: TaskLabel[];
4
+ userId: string;
5
+ }
6
+
7
+ export interface TaskLabel {
8
+ name: string;
9
+ color?: string;
10
+ id?: string;
11
+ }
@@ -1,5 +1,6 @@
1
1
  import { DocumentReference } from "@google-cloud/firestore";
2
2
  import { TodoIntegrationType } from "./TodoIntegrations";
3
+ import { TaskLabel } from "./TaskLabels";
3
4
 
4
5
  export interface TodoTasksBoard {
5
6
  todoTaskId: string;
@@ -24,11 +25,6 @@ export interface TodoTasksBoardList {
24
25
 
25
26
  export type TodoAppFrom = TodoIntegrationType | "lifestack";
26
27
 
27
- export interface TaskLabel {
28
- name: string;
29
- color?: string;
30
- }
31
-
32
28
  export interface DateTimeSet {
33
29
  datetime?: string;
34
30
  date?: string;
@@ -11,3 +11,4 @@ export * from "./CalendlyIntegrations";
11
11
  export * from "./DataTrend";
12
12
  export * from "./DeviceGroup";
13
13
  export * from "./Discount";
14
+ export * from "./TaskLabels";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@demind-inc/core",
3
- "version": "1.3.51",
3
+ "version": "1.4.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {