@demind-inc/core 1.5.57 → 1.5.58

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/types.d.ts CHANGED
@@ -123,9 +123,13 @@ export interface RecommendationAction {
123
123
  isScheduled?: boolean;
124
124
  }
125
125
  export interface ChatAdjustmentCTA {
126
- meals?: ChatAdjustmentMeal[];
127
- sleep?: ChatAdjustmentSleep;
128
- schedule?: ScheduledAction[];
126
+ meals?: ChatAdjustmentChangeWrapper<ChatAdjustmentMeal>[];
127
+ sleep?: ChatAdjustmentChangeWrapper<ChatAdjustmentSleep>;
128
+ schedule?: ChatAdjustmentChangeWrapper<ScheduledAction>[];
129
+ }
130
+ export interface ChatAdjustmentChangeWrapper<T> {
131
+ before: Partial<T>;
132
+ after: Partial<T>;
129
133
  }
130
134
  export interface ChatAdjustmentMeal {
131
135
  mealType: MealType;
package/lib/types.ts CHANGED
@@ -212,9 +212,14 @@ export interface RecommendationAction {
212
212
  }
213
213
 
214
214
  export interface ChatAdjustmentCTA {
215
- meals?: ChatAdjustmentMeal[];
216
- sleep?: ChatAdjustmentSleep;
217
- schedule?: ScheduledAction[];
215
+ meals?: ChatAdjustmentChangeWrapper<ChatAdjustmentMeal>[];
216
+ sleep?: ChatAdjustmentChangeWrapper<ChatAdjustmentSleep>;
217
+ schedule?: ChatAdjustmentChangeWrapper<ScheduledAction>[];
218
+ }
219
+
220
+ export interface ChatAdjustmentChangeWrapper<T> {
221
+ before: Partial<T>;
222
+ after: Partial<T>;
218
223
  }
219
224
 
220
225
  export interface ChatAdjustmentMeal {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@demind-inc/core",
3
- "version": "1.5.57",
3
+ "version": "1.5.58",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {