@demind-inc/core 1.1.87 → 1.1.89

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.
@@ -4,6 +4,7 @@ export declare const DB_COLLECTION: {
4
4
  USERS: string;
5
5
  CALENDARS: string;
6
6
  EVENTS: string;
7
+ CALENDARS_CATEGORY_LABELS: string;
7
8
  METRICS: string;
8
9
  SLEEP: string;
9
10
  PHASE: string;
package/dist/constants.js CHANGED
@@ -5,6 +5,7 @@ exports.DB_COLLECTION = {
5
5
  USERS: "users",
6
6
  CALENDARS: "calendars",
7
7
  EVENTS: "events",
8
+ CALENDARS_CATEGORY_LABELS: "categoryLabels",
8
9
  METRICS: "metrics",
9
10
  SLEEP: "sleep",
10
11
  PHASE: "phase",
@@ -11,12 +11,19 @@ export interface Calendar {
11
11
  scope?: CalendarScope;
12
12
  color?: string;
13
13
  events?: CalendarEvent[];
14
+ categoryLabels?: CategoryLabels[];
14
15
  visible?: boolean;
15
16
  nextSyncToken?: string;
16
17
  default?: boolean;
17
18
  rootEmail?: string;
18
19
  rawJson?: any;
19
20
  }
21
+ export interface CategoryLabels {
22
+ categoryLabelsId: string;
23
+ category: EventCategorySet;
24
+ eventNames: string[];
25
+ updatedAt: string;
26
+ }
20
27
  export interface CalendarEvent {
21
28
  eventId: string;
22
29
  summary: string;
@@ -75,6 +82,7 @@ export type EnergyFeedbackType = "low" | "mild" | "medium" | "strong" | "high";
75
82
  export interface EventCategorySet {
76
83
  id: string;
77
84
  name: string;
85
+ predicted?: boolean;
78
86
  }
79
87
  export declare const defaultEventCategorySet: EventCategorySet[];
80
88
  export type DefaultEventCategoryId = "default_mtg" | "default_lightTask" | "default_deepWork" | "default_exercise" | "default_meal" | "default_break" | "default_other" | "default_social";
package/lib/constants.ts CHANGED
@@ -5,6 +5,7 @@ export const DB_COLLECTION = {
5
5
  USERS: "users",
6
6
  CALENDARS: "calendars",
7
7
  EVENTS: "events",
8
+ CALENDARS_CATEGORY_LABELS: "categoryLabels",
8
9
  METRICS: "metrics",
9
10
  SLEEP: "sleep",
10
11
  PHASE: "phase",
@@ -14,6 +14,7 @@ export interface Calendar {
14
14
  scope?: CalendarScope;
15
15
  color?: string;
16
16
  events?: CalendarEvent[];
17
+ categoryLabels?: CategoryLabels[];
17
18
  visible?: boolean;
18
19
  nextSyncToken?: string;
19
20
  default?: boolean;
@@ -21,6 +22,13 @@ export interface Calendar {
21
22
  rawJson?: any;
22
23
  }
23
24
 
25
+ export interface CategoryLabels {
26
+ categoryLabelsId: string;
27
+ category: EventCategorySet;
28
+ eventNames: string[];
29
+ updatedAt: string;
30
+ }
31
+
24
32
  export interface CalendarEvent {
25
33
  eventId: string;
26
34
  summary: string;
@@ -102,6 +110,7 @@ export type EnergyFeedbackType = "low" | "mild" | "medium" | "strong" | "high";
102
110
  export interface EventCategorySet {
103
111
  id: string;
104
112
  name: string;
113
+ predicted?: boolean;
105
114
  }
106
115
 
107
116
  export const defaultEventCategorySet: EventCategorySet[] = [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@demind-inc/core",
3
- "version": "1.1.87",
3
+ "version": "1.1.89",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {