@demind-inc/core 1.7.67 → 1.7.68

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.
@@ -109,6 +109,13 @@ export interface PredictedMealDetail {
109
109
  startTime: string;
110
110
  endTime: string;
111
111
  description: string;
112
+ food?: MealFoodAmount;
113
+ macros?: {
114
+ [key: string]: number;
115
+ };
116
+ micros?: {
117
+ [key: string]: number;
118
+ };
112
119
  }
113
120
  export type PredictedMeal = Partial<Record<MealType, PredictedMealDetail>>;
114
121
  export interface MetricActivity {
@@ -129,6 +136,7 @@ export interface MealFoodAmount {
129
136
  export interface MetricMealDetail extends Partial<MetricActivity> {
130
137
  type: MealType;
131
138
  food?: MealFoodAmount;
139
+ kcal?: number;
132
140
  macros?: {
133
141
  [key: string]: number;
134
142
  };
@@ -14,7 +14,7 @@ export interface RoutineActivity {
14
14
  shouldAutoSuggest?: boolean;
15
15
  suggestReason?: string;
16
16
  category?: EventCategorySet;
17
- recurring: RoutineRecurring;
17
+ recurring: RoutineActivityRecurring;
18
18
  default?: boolean;
19
19
  hidden?: boolean;
20
20
  selected?: boolean;
@@ -25,21 +25,3 @@ export type RoutineActivityRecurring = {
25
25
  enabled: boolean;
26
26
  };
27
27
  };
28
- export type RoutineCustomRecurrence = {
29
- type: "weekly";
30
- interval: number;
31
- daysOfWeek: RoutineActivityRecurringDay[];
32
- startDate: string;
33
- } | {
34
- type: "monthly-date";
35
- interval: number;
36
- dayOfMonth: number;
37
- startDate: string;
38
- } | {
39
- type: "monthly-weekday";
40
- interval: number;
41
- weekOfMonth: 1 | 2 | 3 | 4 | -1;
42
- dayOfWeek: RoutineActivityRecurringDay;
43
- startDate: string;
44
- };
45
- export type RoutineRecurring = RoutineActivityRecurring | RoutineCustomRecurrence;
@@ -122,6 +122,13 @@ export interface PredictedMealDetail {
122
122
  startTime: string; // HH:mm
123
123
  endTime: string; // HH:mm
124
124
  description: string;
125
+ food?: MealFoodAmount;
126
+ macros?: {
127
+ [key: string]: number;
128
+ };
129
+ micros?: {
130
+ [key: string]: number;
131
+ };
125
132
  }
126
133
 
127
134
  export type PredictedMeal = Partial<Record<MealType, PredictedMealDetail>>;
@@ -146,6 +153,7 @@ export interface MealFoodAmount {
146
153
  export interface MetricMealDetail extends Partial<MetricActivity> {
147
154
  type: MealType;
148
155
  food?: MealFoodAmount;
156
+ kcal?: number;
149
157
  macros?: {
150
158
  [key: string]: number;
151
159
  };
@@ -16,7 +16,7 @@ export interface RoutineActivity {
16
16
  shouldAutoSuggest?: boolean;
17
17
  suggestReason?: string;
18
18
  category?: EventCategorySet;
19
- recurring: RoutineRecurring;
19
+ recurring: RoutineActivityRecurring;
20
20
  default?: boolean;
21
21
  hidden?: boolean;
22
22
  selected?: boolean;
@@ -34,26 +34,3 @@ export type RoutineActivityRecurringDay =
34
34
  export type RoutineActivityRecurring = {
35
35
  [day in RoutineActivityRecurringDay]: { enabled: boolean };
36
36
  };
37
-
38
- export type RoutineCustomRecurrence =
39
- | {
40
- type: "weekly";
41
- interval: number;
42
- daysOfWeek: RoutineActivityRecurringDay[];
43
- startDate: string;
44
- }
45
- | {
46
- type: "monthly-date";
47
- interval: number;
48
- dayOfMonth: number;
49
- startDate: string;
50
- }
51
- | {
52
- type: "monthly-weekday";
53
- interval: number;
54
- weekOfMonth: 1 | 2 | 3 | 4 | -1;
55
- dayOfWeek: RoutineActivityRecurringDay;
56
- startDate: string;
57
- };
58
-
59
- export type RoutineRecurring = RoutineActivityRecurring | RoutineCustomRecurrence;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@demind-inc/core",
3
- "version": "1.7.67",
3
+ "version": "1.7.68",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {