@demind-inc/core 1.1.4 → 1.1.6
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.d.ts +5 -2
- package/dist/constants.js +11 -3
- package/dist/models/TodoIntegrations.d.ts +6 -0
- package/dist/models/TodoIntegrations.js +2 -0
- package/dist/models/TrelloTodos.d.ts +37 -0
- package/dist/models/TrelloTodos.js +2 -0
- package/dist/models/User.d.ts +1 -1
- package/dist/models/index.d.ts +2 -2
- package/dist/models/index.js +2 -2
- package/lib/constants.ts +12 -2
- package/lib/models/TodoIntegrations.ts +7 -0
- package/lib/models/{TrelloTasks.ts → TrelloTodos.ts} +2 -2
- package/lib/models/User.ts +1 -1
- package/lib/models/index.ts +2 -2
- package/package.json +1 -1
- package/lib/models/TaskIntegrations.ts +0 -7
package/dist/constants.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { TodoIntegrationType } from "./models";
|
|
1
2
|
import { SupportedTerraProvidersType } from "./types";
|
|
2
3
|
export declare const DB_COLLECTION: {
|
|
3
4
|
USERS: string;
|
|
@@ -8,7 +9,9 @@ export declare const DB_COLLECTION: {
|
|
|
8
9
|
EMAS: string;
|
|
9
10
|
EMA_DATES: string;
|
|
10
11
|
TOKENS: string;
|
|
11
|
-
|
|
12
|
-
|
|
12
|
+
TODO_INTEGRATIONS: string;
|
|
13
|
+
TRELLO_TODOS: string;
|
|
13
14
|
};
|
|
14
15
|
export declare const SUPPORTED_TERRA_PROVIDERS: SupportedTerraProvidersType[];
|
|
16
|
+
export declare const AVAILABLE_TODO_INTEGRATIONS_TYPE: TodoIntegrationType[];
|
|
17
|
+
export declare const ALL_TODO_INTEGRATIONS_TYPE: TodoIntegrationType[];
|
package/dist/constants.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SUPPORTED_TERRA_PROVIDERS = exports.DB_COLLECTION = void 0;
|
|
3
|
+
exports.ALL_TODO_INTEGRATIONS_TYPE = exports.AVAILABLE_TODO_INTEGRATIONS_TYPE = exports.SUPPORTED_TERRA_PROVIDERS = exports.DB_COLLECTION = void 0;
|
|
4
4
|
exports.DB_COLLECTION = {
|
|
5
5
|
USERS: "users",
|
|
6
6
|
CALENDARS: "calendars",
|
|
@@ -10,8 +10,8 @@ exports.DB_COLLECTION = {
|
|
|
10
10
|
EMAS: "emas",
|
|
11
11
|
EMA_DATES: "emaDates",
|
|
12
12
|
TOKENS: "tokens",
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
TODO_INTEGRATIONS: "todoIntegrations",
|
|
14
|
+
TRELLO_TODOS: "trelloTodos",
|
|
15
15
|
};
|
|
16
16
|
exports.SUPPORTED_TERRA_PROVIDERS = [
|
|
17
17
|
"FITBIT",
|
|
@@ -19,3 +19,11 @@ exports.SUPPORTED_TERRA_PROVIDERS = [
|
|
|
19
19
|
"GARMIN",
|
|
20
20
|
"APPLE_HEALTH",
|
|
21
21
|
];
|
|
22
|
+
exports.AVAILABLE_TODO_INTEGRATIONS_TYPE = [
|
|
23
|
+
"trello",
|
|
24
|
+
];
|
|
25
|
+
exports.ALL_TODO_INTEGRATIONS_TYPE = [
|
|
26
|
+
"trello",
|
|
27
|
+
"todoist",
|
|
28
|
+
"ticktick",
|
|
29
|
+
];
|
|
@@ -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
|
+
}
|
package/dist/models/User.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ export interface User {
|
|
|
19
19
|
access?: UserAccessType;
|
|
20
20
|
subscriptions?: Subscription[];
|
|
21
21
|
tokenId?: DocumentReference;
|
|
22
|
-
|
|
22
|
+
todoIntegrationIds?: Array<DocumentReference>;
|
|
23
23
|
tokens?: UserTokens;
|
|
24
24
|
}
|
|
25
25
|
export interface UserTokens {
|
package/dist/models/index.d.ts
CHANGED
package/dist/models/index.js
CHANGED
|
@@ -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("./
|
|
24
|
-
__exportStar(require("./
|
|
23
|
+
__exportStar(require("./TodoIntegrations"), exports);
|
|
24
|
+
__exportStar(require("./TrelloTodos"), exports);
|
package/lib/constants.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { TodoIntegrationType } from "./models";
|
|
1
2
|
import { SupportedTerraProvidersType } from "./types";
|
|
2
3
|
|
|
3
4
|
export const DB_COLLECTION = {
|
|
@@ -9,8 +10,8 @@ export const DB_COLLECTION = {
|
|
|
9
10
|
EMAS: "emas",
|
|
10
11
|
EMA_DATES: "emaDates",
|
|
11
12
|
TOKENS: "tokens",
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
TODO_INTEGRATIONS: "todoIntegrations",
|
|
14
|
+
TRELLO_TODOS: "trelloTodos",
|
|
14
15
|
};
|
|
15
16
|
|
|
16
17
|
export const SUPPORTED_TERRA_PROVIDERS: SupportedTerraProvidersType[] = [
|
|
@@ -19,3 +20,12 @@ export const SUPPORTED_TERRA_PROVIDERS: SupportedTerraProvidersType[] = [
|
|
|
19
20
|
"GARMIN",
|
|
20
21
|
"APPLE_HEALTH",
|
|
21
22
|
];
|
|
23
|
+
|
|
24
|
+
export const AVAILABLE_TODO_INTEGRATIONS_TYPE: TodoIntegrationType[] = [
|
|
25
|
+
"trello",
|
|
26
|
+
];
|
|
27
|
+
export const ALL_TODO_INTEGRATIONS_TYPE: TodoIntegrationType[] = [
|
|
28
|
+
"trello",
|
|
29
|
+
"todoist",
|
|
30
|
+
"ticktick",
|
|
31
|
+
];
|
package/lib/models/User.ts
CHANGED
|
@@ -20,7 +20,7 @@ export interface User {
|
|
|
20
20
|
access?: UserAccessType;
|
|
21
21
|
subscriptions?: Subscription[];
|
|
22
22
|
tokenId?: DocumentReference;
|
|
23
|
-
|
|
23
|
+
todoIntegrationIds?: Array<DocumentReference>;
|
|
24
24
|
tokens?: UserTokens; // Deprecated
|
|
25
25
|
}
|
|
26
26
|
|
package/lib/models/index.ts
CHANGED
package/package.json
CHANGED