@demind-inc/core 1.5.49 → 1.5.50

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.
@@ -41,6 +41,7 @@ export declare const DB_COLLECTION: {
41
41
  CHAT_MEAL_SESSION: string;
42
42
  CHAT_MESSAGES: string;
43
43
  CHAT_TASK_SESSION: string;
44
+ CHAT_GENERAL_SESSION: string;
44
45
  };
45
46
  export declare const SLEEP_SUPPORTED_TERRA_PROVIDERS: SupportedTerraProvidersType[];
46
47
  export declare const STRESS_SUPPORTED_TERRA_PROVIDERS: SupportedTerraProvidersType[];
package/dist/constants.js CHANGED
@@ -42,6 +42,7 @@ exports.DB_COLLECTION = {
42
42
  CHAT_MEAL_SESSION: "mealSession",
43
43
  CHAT_MESSAGES: "messages",
44
44
  CHAT_TASK_SESSION: "taskSession",
45
+ CHAT_GENERAL_SESSION: "generalSession",
45
46
  };
46
47
  exports.SLEEP_SUPPORTED_TERRA_PROVIDERS = [
47
48
  "FITBIT",
@@ -7,12 +7,14 @@ export interface Chat {
7
7
  recommendationSessions?: RecommendationSession[];
8
8
  sleepSessions?: SleepSession[];
9
9
  mealSessions?: MealSession[];
10
+ taskSessions?: TaskSession[];
11
+ generalSessions?: GeneralSession[];
10
12
  }
11
13
  export interface ChatSummary {
12
14
  scheduler?: string;
13
15
  recommendations?: string;
14
16
  }
15
- export type ChatSessionType = "scheduler" | "recommendation" | "sleep" | "meal" | "task";
17
+ export type ChatSessionType = "scheduler" | "recommendation" | "sleep" | "meal" | "task" | "general";
16
18
  export interface SchedulerSession {
17
19
  schedulerSessionId: string;
18
20
  messages: SessionMessage[];
@@ -44,6 +46,12 @@ export interface MealSession {
44
46
  dinner: TimeSummary;
45
47
  };
46
48
  }
49
+ export interface GeneralSession {
50
+ generalSessionId: string;
51
+ messages: SessionMessage[];
52
+ createdAt: string;
53
+ sessionType: ChatSessionType;
54
+ }
47
55
  export interface TaskSession {
48
56
  taskSessionId: string;
49
57
  messages: SessionMessage[];
package/lib/constants.ts CHANGED
@@ -42,6 +42,7 @@ export const DB_COLLECTION = {
42
42
  CHAT_MEAL_SESSION: "mealSession",
43
43
  CHAT_MESSAGES: "messages",
44
44
  CHAT_TASK_SESSION: "taskSession",
45
+ CHAT_GENERAL_SESSION: "generalSession",
45
46
  };
46
47
 
47
48
  export const SLEEP_SUPPORTED_TERRA_PROVIDERS: SupportedTerraProvidersType[] = [
@@ -8,6 +8,8 @@ export interface Chat {
8
8
  recommendationSessions?: RecommendationSession[];
9
9
  sleepSessions?: SleepSession[];
10
10
  mealSessions?: MealSession[];
11
+ taskSessions?: TaskSession[];
12
+ generalSessions?: GeneralSession[];
11
13
  }
12
14
 
13
15
  export interface ChatSummary {
@@ -20,7 +22,8 @@ export type ChatSessionType =
20
22
  | "recommendation"
21
23
  | "sleep"
22
24
  | "meal"
23
- | "task";
25
+ | "task"
26
+ | "general";
24
27
 
25
28
  export interface SchedulerSession {
26
29
  schedulerSessionId: string;
@@ -57,6 +60,13 @@ export interface MealSession {
57
60
  };
58
61
  }
59
62
 
63
+ export interface GeneralSession {
64
+ generalSessionId: string;
65
+ messages: SessionMessage[];
66
+ createdAt: string;
67
+ sessionType: ChatSessionType;
68
+ }
69
+
60
70
  export interface TaskSession {
61
71
  taskSessionId: string;
62
72
  messages: SessionMessage[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@demind-inc/core",
3
- "version": "1.5.49",
3
+ "version": "1.5.50",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {