@demind-inc/core 1.8.1 → 1.8.4
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/models/Metrics.d.ts +3 -0
- package/dist/models/Routine.d.ts +22 -1
- package/lib/models/Metrics.ts +3 -0
- package/lib/models/Routine.ts +32 -1
- package/package.json +1 -1
package/dist/models/Metrics.d.ts
CHANGED
|
@@ -138,6 +138,9 @@ export interface MetricMealDetailMacros {
|
|
|
138
138
|
protein_g?: number;
|
|
139
139
|
cholesterol_mg?: number;
|
|
140
140
|
sodium_mg?: number;
|
|
141
|
+
calories: number;
|
|
142
|
+
sugar_g?: number;
|
|
143
|
+
alcohol_g?: number;
|
|
141
144
|
}
|
|
142
145
|
export interface MetricMealDetailMicros {
|
|
143
146
|
selenium_mg?: number;
|
package/dist/models/Routine.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export interface RoutineActivity {
|
|
|
14
14
|
shouldAutoSuggest?: boolean;
|
|
15
15
|
suggestReason?: string;
|
|
16
16
|
category?: EventCategorySet;
|
|
17
|
-
recurring:
|
|
17
|
+
recurring: RoutineRecurring;
|
|
18
18
|
default?: boolean;
|
|
19
19
|
hidden?: boolean;
|
|
20
20
|
selected?: boolean;
|
|
@@ -25,3 +25,24 @@ export type RoutineActivityRecurring = {
|
|
|
25
25
|
enabled: boolean;
|
|
26
26
|
};
|
|
27
27
|
};
|
|
28
|
+
export type RoutineCustomRecurrenceWeekly = {
|
|
29
|
+
type: "weekly";
|
|
30
|
+
interval: number;
|
|
31
|
+
daysOfWeek: RoutineActivityRecurringDay[];
|
|
32
|
+
startDate: string;
|
|
33
|
+
};
|
|
34
|
+
export type RoutineCustomRecurrenceMonthlyDate = {
|
|
35
|
+
type: "monthly-date";
|
|
36
|
+
interval: number;
|
|
37
|
+
daysOfMonth: number[];
|
|
38
|
+
startDate: string;
|
|
39
|
+
};
|
|
40
|
+
export type RoutineCustomRecurrenceMonthlyWeekday = {
|
|
41
|
+
type: "monthly-weekday";
|
|
42
|
+
interval: number;
|
|
43
|
+
weekOfMonth: -1 | 1 | 2 | 3 | 4;
|
|
44
|
+
dayOfWeek: RoutineActivityRecurringDay;
|
|
45
|
+
startDate: string;
|
|
46
|
+
};
|
|
47
|
+
export type RoutineCustomRecurrence = RoutineCustomRecurrenceWeekly | RoutineCustomRecurrenceMonthlyDate | RoutineCustomRecurrenceMonthlyWeekday;
|
|
48
|
+
export type RoutineRecurring = RoutineActivityRecurring | RoutineCustomRecurrence;
|
package/lib/models/Metrics.ts
CHANGED
package/lib/models/Routine.ts
CHANGED
|
@@ -16,7 +16,7 @@ export interface RoutineActivity {
|
|
|
16
16
|
shouldAutoSuggest?: boolean;
|
|
17
17
|
suggestReason?: string;
|
|
18
18
|
category?: EventCategorySet;
|
|
19
|
-
recurring:
|
|
19
|
+
recurring: RoutineRecurring;
|
|
20
20
|
default?: boolean;
|
|
21
21
|
hidden?: boolean;
|
|
22
22
|
selected?: boolean;
|
|
@@ -34,3 +34,34 @@ export type RoutineActivityRecurringDay =
|
|
|
34
34
|
export type RoutineActivityRecurring = {
|
|
35
35
|
[day in RoutineActivityRecurringDay]: { enabled: boolean };
|
|
36
36
|
};
|
|
37
|
+
|
|
38
|
+
// --- Custom recurrence variants ---
|
|
39
|
+
|
|
40
|
+
export type RoutineCustomRecurrenceWeekly = {
|
|
41
|
+
type: "weekly";
|
|
42
|
+
interval: number;
|
|
43
|
+
daysOfWeek: RoutineActivityRecurringDay[];
|
|
44
|
+
startDate: string;
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
export type RoutineCustomRecurrenceMonthlyDate = {
|
|
48
|
+
type: "monthly-date";
|
|
49
|
+
interval: number;
|
|
50
|
+
daysOfMonth: number[];
|
|
51
|
+
startDate: string;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
export type RoutineCustomRecurrenceMonthlyWeekday = {
|
|
55
|
+
type: "monthly-weekday";
|
|
56
|
+
interval: number;
|
|
57
|
+
weekOfMonth: -1 | 1 | 2 | 3 | 4;
|
|
58
|
+
dayOfWeek: RoutineActivityRecurringDay;
|
|
59
|
+
startDate: string;
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
export type RoutineCustomRecurrence =
|
|
63
|
+
| RoutineCustomRecurrenceWeekly
|
|
64
|
+
| RoutineCustomRecurrenceMonthlyDate
|
|
65
|
+
| RoutineCustomRecurrenceMonthlyWeekday;
|
|
66
|
+
|
|
67
|
+
export type RoutineRecurring = RoutineActivityRecurring | RoutineCustomRecurrence;
|