@demind-inc/core 1.4.11 → 1.4.12

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.
@@ -33,5 +33,6 @@ export declare const DB_COLLECTION: {
33
33
  export declare const SUPPORTED_TERRA_PROVIDERS: SupportedTerraProvidersType[];
34
34
  export declare const STRESS_SUPPORTED_TERRA_PROVIDERS: SupportedTerraProvidersType[];
35
35
  export declare const ACTIVITY_SUPPORTED_TERRA_PROVIDERS: SupportedTerraProvidersType[];
36
+ export declare const MEAL_SUPPORTED_TERRA_PROVIDERS: SupportedTerraProvidersType[];
36
37
  export declare const AVAILABLE_TODO_INTEGRATIONS_TYPE: TodoIntegrationType[];
37
38
  export declare const ALL_TODO_INTEGRATIONS_TYPE: TodoIntegrationType[];
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.ACTIVITY_SUPPORTED_TERRA_PROVIDERS = exports.STRESS_SUPPORTED_TERRA_PROVIDERS = exports.SUPPORTED_TERRA_PROVIDERS = exports.DB_COLLECTION = void 0;
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.SUPPORTED_TERRA_PROVIDERS = exports.DB_COLLECTION = void 0;
4
4
  exports.DB_COLLECTION = {
5
5
  USERS: "users",
6
6
  CALENDARS: "calendars",
@@ -44,6 +44,10 @@ exports.STRESS_SUPPORTED_TERRA_PROVIDERS = [
44
44
  "FITBIT",
45
45
  ];
46
46
  exports.ACTIVITY_SUPPORTED_TERRA_PROVIDERS = ["FITBIT", "OURA", "GARMIN", "WHOOP", "STRAVA"]; // APPLE is not supported in terra-api
47
+ exports.MEAL_SUPPORTED_TERRA_PROVIDERS = [
48
+ "FITBIT",
49
+ "MYFITNESSPAL",
50
+ ];
47
51
  exports.AVAILABLE_TODO_INTEGRATIONS_TYPE = [
48
52
  "trello",
49
53
  "todoist",
package/dist/types.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { CalendarEvent, CalendarTaskFrom, EnergyFeedbackType, EventCategorySet, MetricActivity, MetricMealItem, PhaseStartEndSet, SleepDetail } from "./models";
2
- export type SupportedTerraProvidersType = "FITBIT" | "OURA" | "GARMIN" | "WHOOP" | "EIGHTSLEEP" | "ULTRAHUMAN" | "STRAVA";
2
+ export type SupportedTerraProvidersType = "FITBIT" | "OURA" | "GARMIN" | "WHOOP" | "EIGHTSLEEP" | "ULTRAHUMAN" | "STRAVA" | "MYFITNESSPAL";
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";
5
5
  export type TimePhase = "morning" | "midday" | "evening";
package/lib/constants.ts CHANGED
@@ -49,6 +49,11 @@ export const STRESS_SUPPORTED_TERRA_PROVIDERS: SupportedTerraProvidersType[] = [
49
49
  export const ACTIVITY_SUPPORTED_TERRA_PROVIDERS: SupportedTerraProvidersType[] =
50
50
  ["FITBIT", "OURA", "GARMIN", "WHOOP", "STRAVA"]; // APPLE is not supported in terra-api
51
51
 
52
+ export const MEAL_SUPPORTED_TERRA_PROVIDERS: SupportedTerraProvidersType[] = [
53
+ "FITBIT",
54
+ "MYFITNESSPAL",
55
+ ];
56
+
52
57
  export const AVAILABLE_TODO_INTEGRATIONS_TYPE: TodoIntegrationType[] = [
53
58
  "trello",
54
59
  "todoist",
package/lib/types.ts CHANGED
@@ -16,7 +16,8 @@ export type SupportedTerraProvidersType =
16
16
  | "WHOOP"
17
17
  | "EIGHTSLEEP"
18
18
  | "ULTRAHUMAN"
19
- | "STRAVA";
19
+ | "STRAVA"
20
+ | "MYFITNESSPAL";
20
21
 
21
22
  export type SupportedTerraSDKType =
22
23
  | "APPLE"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@demind-inc/core",
3
- "version": "1.4.11",
3
+ "version": "1.4.12",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {