@demind-inc/core 1.4.17 → 1.4.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.
@@ -29,6 +29,8 @@ export declare const DB_COLLECTION: {
29
29
  DEVICE_GROUP: string;
30
30
  DEVICES: string;
31
31
  DISCOUNT: string;
32
+ ROUTINE: string;
33
+ ROUTINE_ACTIVITIES: string;
32
34
  };
33
35
  export declare const SUPPORTED_TERRA_PROVIDERS: SupportedTerraProvidersType[];
34
36
  export declare const STRESS_SUPPORTED_TERRA_PROVIDERS: SupportedTerraProvidersType[];
package/dist/constants.js CHANGED
@@ -30,6 +30,8 @@ exports.DB_COLLECTION = {
30
30
  DEVICE_GROUP: "deviceGroup",
31
31
  DEVICES: "devices",
32
32
  DISCOUNT: "discount",
33
+ ROUTINE: "routine",
34
+ ROUTINE_ACTIVITIES: "routineActivities",
33
35
  };
34
36
  exports.SUPPORTED_TERRA_PROVIDERS = [
35
37
  "FITBIT",
@@ -0,0 +1,20 @@
1
+ export interface Routine {
2
+ routineId: string;
3
+ userId: string;
4
+ preferenceId: string;
5
+ routineActivities: RoutineActivity[];
6
+ }
7
+ export interface RoutineActivity {
8
+ routineActivityId: string;
9
+ name: string;
10
+ startTime: string;
11
+ endTime: string;
12
+ durationMin: number;
13
+ categoryId?: string;
14
+ recurring: RoutineActivityRecurring;
15
+ }
16
+ export interface RoutineActivityRecurring {
17
+ [day: string]: {
18
+ enabled: boolean;
19
+ };
20
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -29,6 +29,7 @@ export interface User {
29
29
  calendlyIntegrationId?: string;
30
30
  taskLabelsGroupId?: string;
31
31
  dataTrendId?: string;
32
+ routineId?: string;
32
33
  tokens?: UserTokens;
33
34
  }
34
35
  export interface UserTokens {
@@ -12,3 +12,4 @@ export * from "./DataTrend";
12
12
  export * from "./DeviceGroup";
13
13
  export * from "./Discount";
14
14
  export * from "./TaskLabels";
15
+ export * from "./Routine";
@@ -28,3 +28,4 @@ __exportStar(require("./DataTrend"), exports);
28
28
  __exportStar(require("./DeviceGroup"), exports);
29
29
  __exportStar(require("./Discount"), exports);
30
30
  __exportStar(require("./TaskLabels"), exports);
31
+ __exportStar(require("./Routine"), exports);
package/dist/types.d.ts CHANGED
@@ -92,3 +92,4 @@ export interface EnergyFluctuationItem {
92
92
  energyFeedback?: EnergyFeedbackType;
93
93
  }
94
94
  export * from "./featureFlags.types";
95
+ export type TimeboxSessionType = "deepWork" | "lightWork";
package/lib/constants.ts CHANGED
@@ -30,6 +30,8 @@ export const DB_COLLECTION = {
30
30
  DEVICE_GROUP: "deviceGroup",
31
31
  DEVICES: "devices",
32
32
  DISCOUNT: "discount",
33
+ ROUTINE: "routine",
34
+ ROUTINE_ACTIVITIES: "routineActivities",
33
35
  };
34
36
 
35
37
  export const SUPPORTED_TERRA_PROVIDERS: SupportedTerraProvidersType[] = [
@@ -0,0 +1,20 @@
1
+ export interface Routine {
2
+ routineId: string;
3
+ userId: string;
4
+ preferenceId: string;
5
+ routineActivities: RoutineActivity[];
6
+ }
7
+
8
+ export interface RoutineActivity {
9
+ routineActivityId: string;
10
+ name: string;
11
+ startTime: string;
12
+ endTime: string;
13
+ durationMin: number;
14
+ categoryId?: string;
15
+ recurring: RoutineActivityRecurring;
16
+ }
17
+
18
+ export interface RoutineActivityRecurring {
19
+ [day: string]: { enabled: boolean };
20
+ }
@@ -30,6 +30,7 @@ export interface User {
30
30
  calendlyIntegrationId?: string;
31
31
  taskLabelsGroupId?: string;
32
32
  dataTrendId?: string;
33
+ routineId?: string;
33
34
  tokens?: UserTokens; // Deprecated
34
35
  }
35
36
 
@@ -12,3 +12,4 @@ export * from "./DataTrend";
12
12
  export * from "./DeviceGroup";
13
13
  export * from "./Discount";
14
14
  export * from "./TaskLabels";
15
+ export * from "./Routine";
package/lib/types.ts CHANGED
@@ -142,3 +142,5 @@ export interface EnergyFluctuationItem {
142
142
  }
143
143
 
144
144
  export * from "./featureFlags.types";
145
+
146
+ export type TimeboxSessionType = "deepWork" | "lightWork";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@demind-inc/core",
3
- "version": "1.4.17",
3
+ "version": "1.4.18",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {