@demind-inc/core 1.3.8 → 1.3.10

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.
package/dist/types.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { CalendarEvent, EnergyFeedbackType, EventCategorySet, PhaseStartEndSet, SleepDetail } from "./models";
1
+ import { CalendarEvent, EnergyFeedbackType, EventCategorySet, MetricActivity, PhaseStartEndSet, SleepDetail } from "./models";
2
2
  export type SupportedTerraProvidersType = "FITBIT" | "OURA" | "GARMIN" | "WHOOP" | "EIGHTSLEEP" | "ULTRAHUMAN";
3
3
  export type SupportedTerraSDKType = "APPLE" | "GOOGLE_FIT" | "SAMSUNG_HEALTH" | "FREESTYLE_LIBRE";
4
4
  export type CircadianPhase = "default" | "wakeup_low" | "wakeup_normal" | "morning_high" | "morning_normal" | "morning_low" | "evening_high" | "evening_low" | "evening_normal";
@@ -41,6 +41,10 @@ export interface SleepDetailsByDate {
41
41
  date: string;
42
42
  details: SleepDetail;
43
43
  }
44
+ export interface ExerciseDetailsByDate {
45
+ date: string;
46
+ details: MetricActivity[];
47
+ }
44
48
  export interface PhaseDetailsByDate {
45
49
  date: string;
46
50
  details: PhaseStartEndSet;
package/lib/types.ts CHANGED
@@ -2,6 +2,7 @@ import {
2
2
  CalendarEvent,
3
3
  EnergyFeedbackType,
4
4
  EventCategorySet,
5
+ MetricActivity,
5
6
  PhaseStartEndSet,
6
7
  SleepDetail,
7
8
  } from "./models";
@@ -63,8 +64,8 @@ export interface ScheduledAction {
63
64
  startDate: string;
64
65
  endDate: string;
65
66
  taskId?: string;
66
- categoryId?: string
67
- phase?: CircadianPhase
67
+ categoryId?: string;
68
+ phase?: CircadianPhase;
68
69
  }
69
70
 
70
71
  export interface ScheduledActionOptions {
@@ -78,6 +79,11 @@ export interface SleepDetailsByDate {
78
79
  details: SleepDetail;
79
80
  }
80
81
 
82
+ export interface ExerciseDetailsByDate {
83
+ date: string;
84
+ details: MetricActivity[];
85
+ }
86
+
81
87
  export interface PhaseDetailsByDate {
82
88
  date: string;
83
89
  details: PhaseStartEndSet;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@demind-inc/core",
3
- "version": "1.3.8",
3
+ "version": "1.3.10",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {