@demind-inc/core 1.1.59 → 1.1.61

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.
@@ -5,6 +5,8 @@ export declare const DB_COLLECTION: {
5
5
  CALENDARS: string;
6
6
  EVENTS: string;
7
7
  METRICS: string;
8
+ SLEEP: string;
9
+ PHASE: string;
8
10
  RECOMMENDED_TASKS: string;
9
11
  EMAS: string;
10
12
  EMA_DATES: string;
package/dist/constants.js CHANGED
@@ -6,6 +6,8 @@ exports.DB_COLLECTION = {
6
6
  CALENDARS: "calendars",
7
7
  EVENTS: "events",
8
8
  METRICS: "metrics",
9
+ SLEEP: "sleep",
10
+ PHASE: "phase",
9
11
  RECOMMENDED_TASKS: "recommendedTasks",
10
12
  EMAS: "emas",
11
13
  EMA_DATES: "emaDates",
@@ -45,8 +45,9 @@ export interface CalendarEvent {
45
45
  export interface CalendarEventAttendee {
46
46
  email: string;
47
47
  displayName?: string;
48
- responseStatus: "needsAction" | "declined" | "tentative" | "accepted";
48
+ responseStatus: CalendarEventAttendeeResponseStatus;
49
49
  }
50
+ export type CalendarEventAttendeeResponseStatus = "needsAction" | "declined" | "tentative" | "accepted";
50
51
  export interface CalendarTaskFrom {
51
52
  boardId: string;
52
53
  taskId: string;
@@ -3,12 +3,11 @@ export interface Metrics {
3
3
  metricId: string;
4
4
  sleep?: MetricSleep[];
5
5
  phase?: MetricPhase[];
6
+ basicTimezone?: string;
6
7
  }
7
8
  export interface MetricSleep {
8
9
  metricSleepId: string;
9
10
  date: string;
10
- didInitialSync?: boolean;
11
- avgDurationMin?: number;
12
11
  scores?: SleepDetail[];
13
12
  }
14
13
  export type PhaseStartEndSet = Omit<Record<CircadianPhase, {
@@ -19,7 +18,6 @@ export type PhaseStartEndSet = Omit<Record<CircadianPhase, {
19
18
  export interface MetricPhase {
20
19
  metricPhaseId: string;
21
20
  date: string;
22
- basicTimezone?: string;
23
21
  data: PhaseStartEndSet;
24
22
  }
25
23
  export interface SleepDetail {
package/lib/constants.ts CHANGED
@@ -6,6 +6,8 @@ export const DB_COLLECTION = {
6
6
  CALENDARS: "calendars",
7
7
  EVENTS: "events",
8
8
  METRICS: "metrics",
9
+ SLEEP: "sleep",
10
+ PHASE: "phase",
9
11
  RECOMMENDED_TASKS: "recommendedTasks",
10
12
  EMAS: "emas",
11
13
  EMA_DATES: "emaDates",
@@ -49,9 +49,15 @@ export interface CalendarEvent {
49
49
  export interface CalendarEventAttendee {
50
50
  email: string;
51
51
  displayName?: string;
52
- responseStatus: "needsAction" | "declined" | "tentative" | "accepted";
52
+ responseStatus: CalendarEventAttendeeResponseStatus;
53
53
  }
54
54
 
55
+ export type CalendarEventAttendeeResponseStatus =
56
+ | "needsAction"
57
+ | "declined"
58
+ | "tentative"
59
+ | "accepted";
60
+
55
61
  export interface CalendarTaskFrom {
56
62
  boardId: string;
57
63
  taskId: string;
@@ -4,13 +4,12 @@ export interface Metrics {
4
4
  metricId: string;
5
5
  sleep?: MetricSleep[];
6
6
  phase?: MetricPhase[];
7
+ basicTimezone?: string;
7
8
  }
8
9
 
9
10
  export interface MetricSleep {
10
11
  metricSleepId: string;
11
12
  date: string;
12
- didInitialSync?: boolean;
13
- avgDurationMin?: number;
14
13
  scores?: SleepDetail[];
15
14
  }
16
15
 
@@ -22,7 +21,6 @@ export type PhaseStartEndSet = Omit<
22
21
  export interface MetricPhase {
23
22
  metricPhaseId: string;
24
23
  date: string;
25
- basicTimezone?: string;
26
24
  data: PhaseStartEndSet;
27
25
  }
28
26
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@demind-inc/core",
3
- "version": "1.1.59",
3
+ "version": "1.1.61",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {