@demind-inc/core 1.1.3 → 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,5 +8,7 @@ export declare const DB_COLLECTION: {
8
8
  EMAS: string;
9
9
  EMA_DATES: string;
10
10
  TOKENS: string;
11
+ TODO_INTEGRATIONS: string;
12
+ TRELLO_TODOS: string;
11
13
  };
12
14
  export declare const SUPPORTED_TERRA_PROVIDERS: SupportedTerraProvidersType[];
package/dist/constants.js CHANGED
@@ -10,6 +10,8 @@ exports.DB_COLLECTION = {
10
10
  EMAS: "emas",
11
11
  EMA_DATES: "emaDates",
12
12
  TOKENS: "tokens",
13
+ TODO_INTEGRATIONS: "todoIntegrations",
14
+ TRELLO_TODOS: "trelloTodos",
13
15
  };
14
16
  exports.SUPPORTED_TERRA_PROVIDERS = [
15
17
  "FITBIT",
@@ -0,0 +1,6 @@
1
+ export type TaskIntegrationType = "trello";
2
+ export interface TaskIntegration {
3
+ taskIntegrationId: string;
4
+ source: TaskIntegrationType;
5
+ boradIds: string[];
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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 TrelloTask {
2
+ boardId: string;
3
+ taskItems: 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 });
@@ -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,6 +19,7 @@ export interface User {
19
19
  access?: UserAccessType;
20
20
  subscriptions?: Subscription[];
21
21
  tokenId?: DocumentReference;
22
+ todoIntegrationIds?: Array<DocumentReference>;
22
23
  tokens?: UserTokens;
23
24
  }
24
25
  export interface UserTokens {
@@ -4,3 +4,5 @@ export * from "./Metrics";
4
4
  export * from "./RecommendedTasks";
5
5
  export * from "./EMAs";
6
6
  export * from "./Token";
7
+ export * from "./TodoIntegrations";
8
+ export * from "./TrelloTodos";
@@ -20,3 +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("./TodoIntegrations"), exports);
24
+ __exportStar(require("./TrelloTodos"), exports);
package/lib/constants.ts CHANGED
@@ -9,6 +9,8 @@ export const DB_COLLECTION = {
9
9
  EMAS: "emas",
10
10
  EMA_DATES: "emaDates",
11
11
  TOKENS: "tokens",
12
+ TODO_INTEGRATIONS: "todoIntegrations",
13
+ TRELLO_TODOS: "trelloTodos",
12
14
  };
13
15
 
14
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
+ }
@@ -0,0 +1,40 @@
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
+ }
@@ -11,7 +11,7 @@ export interface User {
11
11
  createdAt?: string;
12
12
  hasEnabledSubscribedCalendars?: boolean;
13
13
  hasInitialSynced?: boolean;
14
- fcmToken?: string;
14
+ fcmToken?: string; // Deprecated
15
15
  notifications?: Notifications;
16
16
  hiddenTasks?: Array<DocumentReference>;
17
17
  recommendedTasks?: Array<DocumentReference>;
@@ -20,9 +20,11 @@ export interface User {
20
20
  access?: UserAccessType;
21
21
  subscriptions?: Subscription[];
22
22
  tokenId?: DocumentReference;
23
+ todoIntegrationIds?: Array<DocumentReference>;
23
24
  tokens?: UserTokens; // Deprecated
24
25
  }
25
26
 
27
+ // Deprecated
26
28
  export interface UserTokens {
27
29
  googleRefresh?: string;
28
30
  googleAccess?: string;
@@ -31,6 +33,7 @@ export interface UserTokens {
31
33
  outlookRefresh?: string;
32
34
  outlookAccessExpiryDate?: string;
33
35
  }
36
+
34
37
  export interface Subscription {
35
38
  productId: string;
36
39
  subscribedDate: string;
@@ -4,3 +4,5 @@ export * from "./Metrics";
4
4
  export * from "./RecommendedTasks";
5
5
  export * from "./EMAs";
6
6
  export * from "./Token";
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.3",
3
+ "version": "1.1.5",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {