@demind-inc/core 1.1.88 → 1.1.90

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.
@@ -82,6 +82,7 @@ export type EnergyFeedbackType = "low" | "mild" | "medium" | "strong" | "high";
82
82
  export interface EventCategorySet {
83
83
  id: string;
84
84
  name: string;
85
+ predicted?: boolean;
85
86
  }
86
87
  export declare const defaultEventCategorySet: EventCategorySet[];
87
88
  export type DefaultEventCategoryId = "default_mtg" | "default_lightTask" | "default_deepWork" | "default_exercise" | "default_meal" | "default_break" | "default_other" | "default_social";
@@ -25,8 +25,20 @@ export interface User {
25
25
  preferenceId?: string;
26
26
  onboarding?: OnboardingStatus;
27
27
  calendlyIntegrationId?: string;
28
+ settings?: UserSettings;
28
29
  tokens?: UserTokens;
29
30
  }
31
+ export interface UserSettings {
32
+ general: UserGeneralSetting;
33
+ calendar: UserCalendarSetting;
34
+ }
35
+ export interface UserGeneralSetting {
36
+ timeFormat?: TimeFormatType;
37
+ }
38
+ export interface UserCalendarSetting {
39
+ autoCategorizeEvent?: boolean;
40
+ }
41
+ export type TimeFormatType = "12h" | "24h";
30
42
  export interface UserTokens {
31
43
  googleRefresh?: string;
32
44
  googleAccess?: string;
@@ -110,6 +110,7 @@ export type EnergyFeedbackType = "low" | "mild" | "medium" | "strong" | "high";
110
110
  export interface EventCategorySet {
111
111
  id: string;
112
112
  name: string;
113
+ predicted?: boolean;
113
114
  }
114
115
 
115
116
  export const defaultEventCategorySet: EventCategorySet[] = [
@@ -26,9 +26,25 @@ export interface User {
26
26
  preferenceId?: string;
27
27
  onboarding?: OnboardingStatus;
28
28
  calendlyIntegrationId?: string;
29
+ settings?: UserSettings;
29
30
  tokens?: UserTokens; // Deprecated
30
31
  }
31
32
 
33
+ export interface UserSettings {
34
+ general: UserGeneralSetting;
35
+ calendar: UserCalendarSetting;
36
+ }
37
+
38
+ export interface UserGeneralSetting {
39
+ timeFormat?: TimeFormatType;
40
+ }
41
+
42
+ export interface UserCalendarSetting {
43
+ autoCategorizeEvent?: boolean;
44
+ }
45
+
46
+ export type TimeFormatType = "12h" | "24h";
47
+
32
48
  // Deprecated
33
49
  export interface UserTokens {
34
50
  googleRefresh?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@demind-inc/core",
3
- "version": "1.1.88",
3
+ "version": "1.1.90",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {