@demind-inc/core 1.2.17 → 1.2.19

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/constants.js CHANGED
@@ -31,9 +31,11 @@ exports.SUPPORTED_TERRA_PROVIDERS = [
31
31
  ];
32
32
  exports.AVAILABLE_TODO_INTEGRATIONS_TYPE = [
33
33
  "trello",
34
+ "todoist",
34
35
  ];
35
36
  exports.ALL_TODO_INTEGRATIONS_TYPE = [
36
37
  "trello",
37
38
  "todoist",
38
39
  "ticktick",
40
+ "notion",
39
41
  ];
@@ -24,9 +24,9 @@ export interface TaskDataTrend {
24
24
  export interface EventDataTrend {
25
25
  eventDataTrendId: string;
26
26
  date: string;
27
- stressfulEvent?: DocumentReference;
28
- energyDrainingEvent?: DocumentReference;
29
- energyBoostingEvent?: DocumentReference;
27
+ stressfulEvent?: EventDataTrendEventItem;
28
+ energyDrainingEvent?: EventDataTrendEventItem;
29
+ energyBoostingEvent?: EventDataTrendEventItem;
30
30
  }
31
31
  export interface TaskDataTrendWithData {
32
32
  taskDataTrendId: string;
@@ -38,7 +38,15 @@ export interface TaskDataTrendWithData {
38
38
  export interface EventDataTrendWithData {
39
39
  eventDataTrendId: string;
40
40
  date: string;
41
- stressfulEvent?: CalendarEvent;
42
- energyDrainingEvent?: CalendarEvent;
43
- energyBoostingEvent?: CalendarEvent;
41
+ stressfulEvent?: EventDataTrendEventItemWithData;
42
+ energyDrainingEvent?: EventDataTrendEventItemWithData;
43
+ energyBoostingEvent?: EventDataTrendEventItemWithData;
44
+ }
45
+ export interface EventDataTrendEventItem {
46
+ event: DocumentReference;
47
+ score: number;
48
+ }
49
+ export interface EventDataTrendEventItemWithData {
50
+ event: CalendarEvent;
51
+ score: number;
44
52
  }
@@ -1,4 +1,4 @@
1
- export type TodoIntegrationType = "trello" | "todoist" | "ticktick";
1
+ export type TodoIntegrationType = "trello" | "todoist" | "ticktick" | "notion";
2
2
  export interface TodoIntegration {
3
3
  todoIntegrationId: string;
4
4
  source: TodoIntegrationType;
package/lib/constants.ts CHANGED
@@ -33,9 +33,11 @@ export const SUPPORTED_TERRA_PROVIDERS: SupportedTerraProvidersType[] = [
33
33
 
34
34
  export const AVAILABLE_TODO_INTEGRATIONS_TYPE: TodoIntegrationType[] = [
35
35
  "trello",
36
+ "todoist",
36
37
  ];
37
38
  export const ALL_TODO_INTEGRATIONS_TYPE: TodoIntegrationType[] = [
38
39
  "trello",
39
40
  "todoist",
40
41
  "ticktick",
42
+ "notion",
41
43
  ];
@@ -28,9 +28,9 @@ export interface TaskDataTrend {
28
28
  export interface EventDataTrend {
29
29
  eventDataTrendId: string;
30
30
  date: string;
31
- stressfulEvent?: DocumentReference;
32
- energyDrainingEvent?: DocumentReference;
33
- energyBoostingEvent?: DocumentReference;
31
+ stressfulEvent?: EventDataTrendEventItem;
32
+ energyDrainingEvent?: EventDataTrendEventItem;
33
+ energyBoostingEvent?: EventDataTrendEventItem;
34
34
  }
35
35
 
36
36
  export interface TaskDataTrendWithData {
@@ -44,7 +44,17 @@ export interface TaskDataTrendWithData {
44
44
  export interface EventDataTrendWithData {
45
45
  eventDataTrendId: string;
46
46
  date: string;
47
- stressfulEvent?: CalendarEvent;
48
- energyDrainingEvent?: CalendarEvent;
49
- energyBoostingEvent?: CalendarEvent;
47
+ stressfulEvent?: EventDataTrendEventItemWithData;
48
+ energyDrainingEvent?: EventDataTrendEventItemWithData;
49
+ energyBoostingEvent?: EventDataTrendEventItemWithData;
50
+ }
51
+
52
+ export interface EventDataTrendEventItem {
53
+ event: DocumentReference;
54
+ score: number;
55
+ }
56
+
57
+ export interface EventDataTrendEventItemWithData {
58
+ event: CalendarEvent;
59
+ score: number;
50
60
  }
@@ -1,4 +1,4 @@
1
- export type TodoIntegrationType = "trello" | "todoist" | "ticktick";
1
+ export type TodoIntegrationType = "trello" | "todoist" | "ticktick" | "notion";
2
2
 
3
3
  export interface TodoIntegration {
4
4
  todoIntegrationId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@demind-inc/core",
3
- "version": "1.2.17",
3
+ "version": "1.2.19",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {