@demind-inc/core 1.1.6 → 1.1.8

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.
@@ -10,7 +10,7 @@ export declare const DB_COLLECTION: {
10
10
  EMA_DATES: string;
11
11
  TOKENS: string;
12
12
  TODO_INTEGRATIONS: string;
13
- TRELLO_TODOS: string;
13
+ TODO_TASKS: string;
14
14
  };
15
15
  export declare const SUPPORTED_TERRA_PROVIDERS: SupportedTerraProvidersType[];
16
16
  export declare const AVAILABLE_TODO_INTEGRATIONS_TYPE: TodoIntegrationType[];
package/dist/constants.js CHANGED
@@ -11,7 +11,7 @@ exports.DB_COLLECTION = {
11
11
  EMA_DATES: "emaDates",
12
12
  TOKENS: "tokens",
13
13
  TODO_INTEGRATIONS: "todoIntegrations",
14
- TRELLO_TODOS: "trelloTodos",
14
+ TODO_TASKS: "todoTasks",
15
15
  };
16
16
  exports.SUPPORTED_TERRA_PROVIDERS = [
17
17
  "FITBIT",
@@ -0,0 +1,26 @@
1
+ import { TodoIntegrationType } from "./TodoIntegrations";
2
+ export interface TodoBoard {
3
+ boardId: string;
4
+ tasks: TaskItem[];
5
+ }
6
+ export interface TaskDueDate {
7
+ datetime: string;
8
+ timezone: string;
9
+ }
10
+ export interface TaskLabel {
11
+ name: string;
12
+ color?: string;
13
+ }
14
+ export interface TaskItem {
15
+ taskId: string;
16
+ complected?: boolean;
17
+ name: string;
18
+ desc?: string;
19
+ url?: string;
20
+ due?: TaskDueDate;
21
+ startDate?: TaskDueDate;
22
+ from: TodoIntegrationType;
23
+ boardId: string;
24
+ labels: TaskLabel[];
25
+ updatedAt: string;
26
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -3,6 +3,7 @@ export interface Token {
3
3
  fcm?: string;
4
4
  google?: TokenInfo;
5
5
  outlook?: TokenInfo;
6
+ trello?: TokenInfo;
6
7
  }
7
8
  export interface TokenInfo {
8
9
  refresh?: string;
@@ -5,4 +5,4 @@ export * from "./RecommendedTasks";
5
5
  export * from "./EMAs";
6
6
  export * from "./Token";
7
7
  export * from "./TodoIntegrations";
8
- export * from "./TrelloTodos";
8
+ export * from "./TodoTasks";
@@ -21,4 +21,4 @@ __exportStar(require("./RecommendedTasks"), exports);
21
21
  __exportStar(require("./EMAs"), exports);
22
22
  __exportStar(require("./Token"), exports);
23
23
  __exportStar(require("./TodoIntegrations"), exports);
24
- __exportStar(require("./TrelloTodos"), exports);
24
+ __exportStar(require("./TodoTasks"), exports);
package/lib/constants.ts CHANGED
@@ -11,7 +11,7 @@ export const DB_COLLECTION = {
11
11
  EMA_DATES: "emaDates",
12
12
  TOKENS: "tokens",
13
13
  TODO_INTEGRATIONS: "todoIntegrations",
14
- TRELLO_TODOS: "trelloTodos",
14
+ TODO_TASKS: "todoTasks",
15
15
  };
16
16
 
17
17
  export const SUPPORTED_TERRA_PROVIDERS: SupportedTerraProvidersType[] = [
@@ -0,0 +1,30 @@
1
+ import { TodoIntegrationType } from "./TodoIntegrations";
2
+
3
+ export interface TodoBoard {
4
+ boardId: string;
5
+ tasks: TaskItem[];
6
+ }
7
+
8
+ export interface TaskDueDate {
9
+ datetime: string;
10
+ timezone: string;
11
+ }
12
+
13
+ export interface TaskLabel {
14
+ name: string;
15
+ color?: string;
16
+ }
17
+
18
+ export interface TaskItem {
19
+ taskId: string;
20
+ complected?: boolean;
21
+ name: string;
22
+ desc?: string;
23
+ url?: string;
24
+ due?: TaskDueDate;
25
+ startDate?: TaskDueDate;
26
+ from: TodoIntegrationType;
27
+ boardId: string;
28
+ labels: TaskLabel[];
29
+ updatedAt: string;
30
+ }
@@ -3,6 +3,7 @@ export interface Token {
3
3
  fcm?: string;
4
4
  google?: TokenInfo;
5
5
  outlook?: TokenInfo;
6
+ trello?: TokenInfo;
6
7
  }
7
8
 
8
9
  export interface TokenInfo {
@@ -5,4 +5,4 @@ export * from "./RecommendedTasks";
5
5
  export * from "./EMAs";
6
6
  export * from "./Token";
7
7
  export * from "./TodoIntegrations";
8
- export * from "./TrelloTodos";
8
+ export * from "./TodoTasks";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@demind-inc/core",
3
- "version": "1.1.6",
3
+ "version": "1.1.8",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
@@ -1,40 +0,0 @@
1
- export interface TrelloTodo {
2
- boardId: string;
3
- tasks: TrelloTaskItem[];
4
- }
5
-
6
- export interface TrelloTaskItem {
7
- taskId: string;
8
- checkItemStates?: string[];
9
- closed?: boolean;
10
- coordinates?: string;
11
- creationMethod?: string;
12
- dateLastActivity?: string;
13
- desc?: string;
14
- due?: string;
15
- dueReminder?: string;
16
- idBoard?: string;
17
- idChecklists: TrelloIdChecklist[];
18
- idLabels?: TrelloIdLabel[];
19
- idList?: string;
20
- idMembers?: string[];
21
- idMembersVoted?: string[];
22
- labels: string[];
23
- locationName?: string;
24
- name?: string;
25
- shortLink?: string;
26
- shortUrl?: string;
27
- subscribed?: boolean;
28
- url?: string;
29
- }
30
-
31
- export interface TrelloIdLabel {
32
- id: string;
33
- idBoard?: string;
34
- name?: string;
35
- color?: string;
36
- }
37
-
38
- export interface TrelloIdChecklist {
39
- id: string;
40
- }