@demind-inc/core 1.4.29 → 1.4.31
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/constants.d.ts +1 -1
- package/dist/constants.js +2 -2
- package/dist/models/Calendar.d.ts +5 -0
- package/lib/constants.ts +1 -1
- package/lib/models/Calendar.ts +6 -0
- package/package.json +1 -1
package/dist/constants.d.ts
CHANGED
|
@@ -32,7 +32,7 @@ export declare const DB_COLLECTION: {
|
|
|
32
32
|
ROUTINE: string;
|
|
33
33
|
ROUTINE_ACTIVITIES: string;
|
|
34
34
|
};
|
|
35
|
-
export declare const
|
|
35
|
+
export declare const SLEEP_SUPPORTED_TERRA_PROVIDERS: SupportedTerraProvidersType[];
|
|
36
36
|
export declare const STRESS_SUPPORTED_TERRA_PROVIDERS: SupportedTerraProvidersType[];
|
|
37
37
|
export declare const ACTIVITY_SUPPORTED_TERRA_PROVIDERS: SupportedTerraProvidersType[];
|
|
38
38
|
export declare const MEAL_SUPPORTED_TERRA_PROVIDERS: SupportedTerraProvidersType[];
|
package/dist/constants.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ALL_TODO_INTEGRATIONS_TYPE = exports.AVAILABLE_TODO_INTEGRATIONS_TYPE = exports.MEAL_SUPPORTED_TERRA_PROVIDERS = exports.ACTIVITY_SUPPORTED_TERRA_PROVIDERS = exports.STRESS_SUPPORTED_TERRA_PROVIDERS = exports.
|
|
3
|
+
exports.ALL_TODO_INTEGRATIONS_TYPE = exports.AVAILABLE_TODO_INTEGRATIONS_TYPE = exports.MEAL_SUPPORTED_TERRA_PROVIDERS = exports.ACTIVITY_SUPPORTED_TERRA_PROVIDERS = exports.STRESS_SUPPORTED_TERRA_PROVIDERS = exports.SLEEP_SUPPORTED_TERRA_PROVIDERS = exports.DB_COLLECTION = void 0;
|
|
4
4
|
exports.DB_COLLECTION = {
|
|
5
5
|
USERS: "users",
|
|
6
6
|
CALENDARS: "calendars",
|
|
@@ -33,7 +33,7 @@ exports.DB_COLLECTION = {
|
|
|
33
33
|
ROUTINE: "routine",
|
|
34
34
|
ROUTINE_ACTIVITIES: "routineActivities",
|
|
35
35
|
};
|
|
36
|
-
exports.
|
|
36
|
+
exports.SLEEP_SUPPORTED_TERRA_PROVIDERS = [
|
|
37
37
|
"FITBIT",
|
|
38
38
|
"OURA",
|
|
39
39
|
"GARMIN",
|
|
@@ -90,6 +90,11 @@ export interface ActivityFrom {
|
|
|
90
90
|
export interface CalendarEventMetrics {
|
|
91
91
|
energy?: EnergyFeedbackType;
|
|
92
92
|
stress?: number;
|
|
93
|
+
heartRate?: CalendarEventHRMetrics;
|
|
94
|
+
}
|
|
95
|
+
export interface CalendarEventHRMetrics {
|
|
96
|
+
startHRbpm: number;
|
|
97
|
+
endHRbpm: number;
|
|
93
98
|
}
|
|
94
99
|
export type EnergyFeedbackType = "low" | "mild" | "medium" | "strong" | "high";
|
|
95
100
|
export interface EventCategorySet {
|
package/lib/constants.ts
CHANGED
|
@@ -34,7 +34,7 @@ export const DB_COLLECTION = {
|
|
|
34
34
|
ROUTINE_ACTIVITIES: "routineActivities",
|
|
35
35
|
};
|
|
36
36
|
|
|
37
|
-
export const
|
|
37
|
+
export const SLEEP_SUPPORTED_TERRA_PROVIDERS: SupportedTerraProvidersType[] = [
|
|
38
38
|
"FITBIT",
|
|
39
39
|
"OURA",
|
|
40
40
|
"GARMIN",
|
package/lib/models/Calendar.ts
CHANGED
|
@@ -124,6 +124,12 @@ export interface ActivityFrom {
|
|
|
124
124
|
export interface CalendarEventMetrics {
|
|
125
125
|
energy?: EnergyFeedbackType;
|
|
126
126
|
stress?: number;
|
|
127
|
+
heartRate?: CalendarEventHRMetrics;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export interface CalendarEventHRMetrics {
|
|
131
|
+
startHRbpm: number;
|
|
132
|
+
endHRbpm: number;
|
|
127
133
|
}
|
|
128
134
|
|
|
129
135
|
export type EnergyFeedbackType = "low" | "mild" | "medium" | "strong" | "high";
|