@demind-inc/core 1.4.79 → 1.4.82

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.
@@ -28,6 +28,7 @@ export declare const DB_COLLECTION: {
28
28
  DATA_TREND_ENERGY: string;
29
29
  DATA_TREND_TASK: string;
30
30
  DATA_TREND_EVENT: string;
31
+ DATA_TREND_SCHEDULE: string;
31
32
  DEVICE_GROUP: string;
32
33
  DEVICES: string;
33
34
  DISCOUNT: string;
package/dist/constants.js CHANGED
@@ -29,6 +29,7 @@ exports.DB_COLLECTION = {
29
29
  DATA_TREND_ENERGY: "energy",
30
30
  DATA_TREND_TASK: "task",
31
31
  DATA_TREND_EVENT: "event",
32
+ DATA_TREND_SCHEDULE: "schedule",
32
33
  DEVICE_GROUP: "deviceGroup",
33
34
  DEVICES: "devices",
34
35
  DISCOUNT: "discount",
@@ -7,6 +7,7 @@ export interface DataTrend {
7
7
  energy?: EnergyDataTrend;
8
8
  task?: TaskDataTrend;
9
9
  event?: EventDataTrend;
10
+ schedule?: ScheduleDataTrend;
10
11
  }
11
12
  export interface EnergyDataTrend {
12
13
  energyDataTrendId: string;
@@ -18,6 +19,15 @@ export interface EnergyDataTrend {
18
19
  startTime?: string;
19
20
  endTime?: string;
20
21
  }
22
+ export interface ScheduleDataTrend {
23
+ scheduleDataTrendId: string;
24
+ date: string;
25
+ efficiency?: ScheduleEfficiencyScore;
26
+ }
27
+ export interface ScheduleEfficiencyScore {
28
+ deepWorkEfficiency?: number;
29
+ lightWorkEfficiency?: number;
30
+ }
21
31
  export interface TaskDataTrend {
22
32
  taskDataTrendId: string;
23
33
  date: string;
package/lib/constants.ts CHANGED
@@ -29,6 +29,7 @@ export const DB_COLLECTION = {
29
29
  DATA_TREND_ENERGY: "energy",
30
30
  DATA_TREND_TASK: "task",
31
31
  DATA_TREND_EVENT: "event",
32
+ DATA_TREND_SCHEDULE: "schedule",
32
33
  DEVICE_GROUP: "deviceGroup",
33
34
  DEVICES: "devices",
34
35
  DISCOUNT: "discount",
@@ -8,6 +8,7 @@ export interface DataTrend {
8
8
  energy?: EnergyDataTrend;
9
9
  task?: TaskDataTrend;
10
10
  event?: EventDataTrend;
11
+ schedule?: ScheduleDataTrend;
11
12
  }
12
13
 
13
14
  export interface EnergyDataTrend {
@@ -21,6 +22,17 @@ export interface EnergyDataTrend {
21
22
  endTime?: string;
22
23
  }
23
24
 
25
+ export interface ScheduleDataTrend {
26
+ scheduleDataTrendId: string;
27
+ date: string;
28
+ efficiency?: ScheduleEfficiencyScore;
29
+ }
30
+
31
+ export interface ScheduleEfficiencyScore {
32
+ deepWorkEfficiency?: number;
33
+ lightWorkEfficiency?: number;
34
+ }
35
+
24
36
  export interface TaskDataTrend {
25
37
  taskDataTrendId: string;
26
38
  date: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@demind-inc/core",
3
- "version": "1.4.79",
3
+ "version": "1.4.82",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {