@demind-inc/core 1.1.4 → 1.1.5

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.
@@ -8,7 +8,7 @@ export declare const DB_COLLECTION: {
8
8
  EMAS: string;
9
9
  EMA_DATES: string;
10
10
  TOKENS: string;
11
- TASK_INTEGRATIONS: string;
12
- TRELLO_TASKS: string;
11
+ TODO_INTEGRATIONS: string;
12
+ TRELLO_TODOS: string;
13
13
  };
14
14
  export declare const SUPPORTED_TERRA_PROVIDERS: SupportedTerraProvidersType[];
package/dist/constants.js CHANGED
@@ -10,8 +10,8 @@ exports.DB_COLLECTION = {
10
10
  EMAS: "emas",
11
11
  EMA_DATES: "emaDates",
12
12
  TOKENS: "tokens",
13
- TASK_INTEGRATIONS: "taskIntegrations",
14
- TRELLO_TASKS: "trelloTasks",
13
+ TODO_INTEGRATIONS: "todoIntegrations",
14
+ TRELLO_TODOS: "trelloTodos",
15
15
  };
16
16
  exports.SUPPORTED_TERRA_PROVIDERS = [
17
17
  "FITBIT",
@@ -0,0 +1,6 @@
1
+ export type TodoIntegrationType = "trello";
2
+ export interface TodoIntegration {
3
+ todoIntegrationId: string;
4
+ source: TodoIntegrationType;
5
+ boradIds: string[];
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,37 @@
1
+ export interface TrelloTodo {
2
+ boardId: string;
3
+ tasks: TrelloTaskItem[];
4
+ }
5
+ export interface TrelloTaskItem {
6
+ taskId: string;
7
+ checkItemStates?: string[];
8
+ closed?: boolean;
9
+ coordinates?: string;
10
+ creationMethod?: string;
11
+ dateLastActivity?: string;
12
+ desc?: string;
13
+ due?: string;
14
+ dueReminder?: string;
15
+ idBoard?: string;
16
+ idChecklists: TrelloIdChecklist[];
17
+ idLabels?: TrelloIdLabel[];
18
+ idList?: string;
19
+ idMembers?: string[];
20
+ idMembersVoted?: string[];
21
+ labels: string[];
22
+ locationName?: string;
23
+ name?: string;
24
+ shortLink?: string;
25
+ shortUrl?: string;
26
+ subscribed?: boolean;
27
+ url?: string;
28
+ }
29
+ export interface TrelloIdLabel {
30
+ id: string;
31
+ idBoard?: string;
32
+ name?: string;
33
+ color?: string;
34
+ }
35
+ export interface TrelloIdChecklist {
36
+ id: string;
37
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -19,7 +19,7 @@ export interface User {
19
19
  access?: UserAccessType;
20
20
  subscriptions?: Subscription[];
21
21
  tokenId?: DocumentReference;
22
- taskIntegrationIds?: Array<DocumentReference>;
22
+ todoIntegrationIds?: Array<DocumentReference>;
23
23
  tokens?: UserTokens;
24
24
  }
25
25
  export interface UserTokens {
@@ -4,5 +4,5 @@ export * from "./Metrics";
4
4
  export * from "./RecommendedTasks";
5
5
  export * from "./EMAs";
6
6
  export * from "./Token";
7
- export * from "./TaskIntegrations";
8
- export * from "./TrelloTasks";
7
+ export * from "./TodoIntegrations";
8
+ export * from "./TrelloTodos";
@@ -20,5 +20,5 @@ __exportStar(require("./Metrics"), exports);
20
20
  __exportStar(require("./RecommendedTasks"), exports);
21
21
  __exportStar(require("./EMAs"), exports);
22
22
  __exportStar(require("./Token"), exports);
23
- __exportStar(require("./TaskIntegrations"), exports);
24
- __exportStar(require("./TrelloTasks"), exports);
23
+ __exportStar(require("./TodoIntegrations"), exports);
24
+ __exportStar(require("./TrelloTodos"), exports);
package/lib/constants.ts CHANGED
@@ -9,8 +9,8 @@ export const DB_COLLECTION = {
9
9
  EMAS: "emas",
10
10
  EMA_DATES: "emaDates",
11
11
  TOKENS: "tokens",
12
- TASK_INTEGRATIONS: "taskIntegrations",
13
- TRELLO_TASKS: "trelloTasks",
12
+ TODO_INTEGRATIONS: "todoIntegrations",
13
+ TRELLO_TODOS: "trelloTodos",
14
14
  };
15
15
 
16
16
  export const SUPPORTED_TERRA_PROVIDERS: SupportedTerraProvidersType[] = [
@@ -0,0 +1,7 @@
1
+ export type TodoIntegrationType = "trello";
2
+
3
+ export interface TodoIntegration {
4
+ todoIntegrationId: string;
5
+ source: TodoIntegrationType;
6
+ boradIds: string[];
7
+ }
@@ -1,6 +1,6 @@
1
- export interface TrelloTask {
1
+ export interface TrelloTodo {
2
2
  boardId: string;
3
- taskItems: TrelloTaskItem[];
3
+ tasks: TrelloTaskItem[];
4
4
  }
5
5
 
6
6
  export interface TrelloTaskItem {
@@ -20,7 +20,7 @@ export interface User {
20
20
  access?: UserAccessType;
21
21
  subscriptions?: Subscription[];
22
22
  tokenId?: DocumentReference;
23
- taskIntegrationIds?: Array<DocumentReference>;
23
+ todoIntegrationIds?: Array<DocumentReference>;
24
24
  tokens?: UserTokens; // Deprecated
25
25
  }
26
26
 
@@ -4,5 +4,5 @@ export * from "./Metrics";
4
4
  export * from "./RecommendedTasks";
5
5
  export * from "./EMAs";
6
6
  export * from "./Token";
7
- export * from "./TaskIntegrations";
8
- export * from "./TrelloTasks";
7
+ export * from "./TodoIntegrations";
8
+ export * from "./TrelloTodos";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@demind-inc/core",
3
- "version": "1.1.4",
3
+ "version": "1.1.5",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
@@ -1,7 +0,0 @@
1
- export type TaskIntegrationType = "trello";
2
-
3
- export interface TaskIntegration {
4
- taskIntegrationId: string;
5
- source: TaskIntegrationType;
6
- boradIds: string[];
7
- }