@demind-inc/core 1.7.81 → 1.7.83

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.
@@ -188,4 +188,5 @@ export interface RichContext {
188
188
  reminder_min: number | null;
189
189
  action: Action | null;
190
190
  content: Content | Content[] | null;
191
+ mealContent?: MealSuggestionPayload;
191
192
  }
@@ -14,7 +14,7 @@ export interface RoutineActivity {
14
14
  shouldAutoSuggest?: boolean;
15
15
  suggestReason?: string;
16
16
  category?: EventCategorySet;
17
- recurring: RoutineActivityRecurring;
17
+ recurring: RoutineRecurring;
18
18
  default?: boolean;
19
19
  hidden?: boolean;
20
20
  selected?: boolean;
@@ -25,3 +25,17 @@ 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 RoutineCustomRecurrence = RoutineCustomRecurrenceWeekly | RoutineCustomRecurrenceMonthlyDate;
41
+ export type RoutineRecurring = RoutineActivityRecurring | RoutineCustomRecurrence;
@@ -283,4 +283,5 @@ export interface RichContext {
283
283
  reminder_min: number | null;
284
284
  action: Action | null;
285
285
  content: Content | Content[] | null;
286
+ mealContent?: MealSuggestionPayload
286
287
  }
@@ -16,7 +16,7 @@ export interface RoutineActivity {
16
16
  shouldAutoSuggest?: boolean;
17
17
  suggestReason?: string;
18
18
  category?: EventCategorySet;
19
- recurring: RoutineActivityRecurring;
19
+ recurring: RoutineRecurring;
20
20
  default?: boolean;
21
21
  hidden?: boolean;
22
22
  selected?: boolean;
@@ -34,3 +34,25 @@ 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 RoutineCustomRecurrence =
55
+ | RoutineCustomRecurrenceWeekly
56
+ | RoutineCustomRecurrenceMonthlyDate;
57
+
58
+ 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.81",
3
+ "version": "1.7.83",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {