@demind-inc/core 1.4.45 → 1.4.47

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.
@@ -11,6 +11,7 @@ export declare const DB_COLLECTION: {
11
11
  EXERCISE: string;
12
12
  MEAL: string;
13
13
  HEART_RATE: string;
14
+ MOVEMENT: string;
14
15
  STRESS: string;
15
16
  RECOMMENDED_TASKS: string;
16
17
  EMAS: string;
package/dist/constants.js CHANGED
@@ -12,6 +12,7 @@ exports.DB_COLLECTION = {
12
12
  EXERCISE: "exercise",
13
13
  MEAL: "meal",
14
14
  HEART_RATE: "heartRate",
15
+ MOVEMENT: "movement",
15
16
  STRESS: "stress",
16
17
  RECOMMENDED_TASKS: "recommendedTasks",
17
18
  EMAS: "emas",
@@ -54,10 +55,12 @@ exports.AVAILABLE_TODO_INTEGRATIONS_TYPE = [
54
55
  "trello",
55
56
  "todoist",
56
57
  "ticktick",
58
+ "apple_reminder",
57
59
  ];
58
60
  exports.ALL_TODO_INTEGRATIONS_TYPE = [
59
61
  "trello",
60
62
  "todoist",
61
63
  "ticktick",
64
+ "apple_reminder",
62
65
  "notion",
63
66
  ];
@@ -7,6 +7,7 @@ export interface Metrics {
7
7
  meal?: MetricMeal[];
8
8
  heartRate?: MetricHeartRate[];
9
9
  stress?: MetricStress[];
10
+ movement?: MetricMovement[];
10
11
  basicTimezone?: string;
11
12
  targetUserId?: string;
12
13
  }
@@ -53,6 +54,22 @@ export interface MetricHeartRate {
53
54
  hrvSdnn?: MetricHRValueSet[];
54
55
  summary?: MetricHRSummary;
55
56
  }
57
+ export interface MetricMovement {
58
+ metricMovementId: string;
59
+ date: string;
60
+ summary?: MetricMovementValueSet[];
61
+ distanceMeter?: MetricMovementValueSet[];
62
+ steps?: MetricMovementValueSet[];
63
+ }
64
+ export interface MetricMovementSummary {
65
+ totalDistanceMeter?: number;
66
+ totalSteps?: number;
67
+ }
68
+ export interface MetricMovementValueSet {
69
+ timestamp: string;
70
+ value: number;
71
+ durationSeconds: number;
72
+ }
56
73
  export interface MetricStress {
57
74
  metricStressId: string;
58
75
  date: string;
@@ -1,5 +1,5 @@
1
1
  import { DocumentReference } from "@google-cloud/firestore";
2
- export type TodoIntegrationType = "trello" | "todoist" | "ticktick" | "notion";
2
+ export type TodoIntegrationType = "trello" | "todoist" | "ticktick" | "notion" | "apple_reminder";
3
3
  export interface TodoIntegration {
4
4
  todoIntegrationId: string;
5
5
  source: TodoIntegrationType;
package/lib/constants.ts CHANGED
@@ -12,6 +12,7 @@ export const DB_COLLECTION = {
12
12
  EXERCISE: "exercise",
13
13
  MEAL: "meal",
14
14
  HEART_RATE: "heartRate",
15
+ MOVEMENT: "movement",
15
16
  STRESS: "stress",
16
17
  RECOMMENDED_TASKS: "recommendedTasks",
17
18
  EMAS: "emas",
@@ -60,10 +61,12 @@ export const AVAILABLE_TODO_INTEGRATIONS_TYPE: TodoIntegrationType[] = [
60
61
  "trello",
61
62
  "todoist",
62
63
  "ticktick",
64
+ "apple_reminder",
63
65
  ];
64
66
  export const ALL_TODO_INTEGRATIONS_TYPE: TodoIntegrationType[] = [
65
67
  "trello",
66
68
  "todoist",
67
69
  "ticktick",
70
+ "apple_reminder",
68
71
  "notion",
69
72
  ];
@@ -8,6 +8,7 @@ export interface Metrics {
8
8
  meal?: MetricMeal[];
9
9
  heartRate?: MetricHeartRate[];
10
10
  stress?: MetricStress[];
11
+ movement?: MetricMovement[];
11
12
  basicTimezone?: string;
12
13
  targetUserId?: string;
13
14
  }
@@ -61,6 +62,25 @@ export interface MetricHeartRate {
61
62
  summary?: MetricHRSummary;
62
63
  }
63
64
 
65
+ export interface MetricMovement {
66
+ metricMovementId: string;
67
+ date: string;
68
+ summary?: MetricMovementValueSet[];
69
+ distanceMeter?: MetricMovementValueSet[];
70
+ steps?: MetricMovementValueSet[];
71
+ }
72
+
73
+ export interface MetricMovementSummary {
74
+ totalDistanceMeter?: number;
75
+ totalSteps?: number;
76
+ }
77
+
78
+ export interface MetricMovementValueSet {
79
+ timestamp: string;
80
+ value: number;
81
+ durationSeconds: number;
82
+ }
83
+
64
84
  export interface MetricStress {
65
85
  metricStressId: string;
66
86
  date: string;
@@ -1,6 +1,11 @@
1
1
  import { DocumentReference } from "@google-cloud/firestore";
2
2
 
3
- export type TodoIntegrationType = "trello" | "todoist" | "ticktick" | "notion";
3
+ export type TodoIntegrationType =
4
+ | "trello"
5
+ | "todoist"
6
+ | "ticktick"
7
+ | "notion"
8
+ | "apple_reminder";
4
9
 
5
10
  export interface TodoIntegration {
6
11
  todoIntegrationId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@demind-inc/core",
3
- "version": "1.4.45",
3
+ "version": "1.4.47",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {