@pipedream/todoist 0.2.1 → 0.3.0
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/actions/create-filter/create-filter.mjs +8 -5
- package/actions/create-label/create-label.mjs +8 -3
- package/actions/create-project/create-project.mjs +8 -3
- package/actions/create-project-comment/create-project-comment.mjs +7 -2
- package/actions/create-section/create-section.mjs +7 -2
- package/actions/create-task/create-task.mjs +8 -2
- package/actions/create-task-comment/create-task-comment.mjs +7 -2
- package/actions/delete-comment/delete-comment.mjs +7 -2
- package/actions/delete-filter/delete-filter.mjs +7 -2
- package/actions/delete-label/delete-label.mjs +7 -2
- package/actions/delete-project/delete-project.mjs +7 -2
- package/actions/delete-section/delete-section.mjs +7 -2
- package/actions/delete-task/delete-task.mjs +7 -2
- package/actions/export-tasks/export-tasks.mjs +10 -5
- package/actions/find-project/find-project.mjs +7 -2
- package/actions/find-task/find-task.mjs +9 -4
- package/actions/find-user/find-user.mjs +7 -2
- package/actions/get-label/get-label.mjs +7 -2
- package/actions/get-project/get-project.mjs +7 -2
- package/actions/get-project-comment/get-project-comment.mjs +7 -2
- package/actions/get-section/get-section.mjs +7 -2
- package/actions/get-task/get-task.mjs +7 -2
- package/actions/get-task-comment/get-task-comment.mjs +7 -2
- package/actions/import-tasks/import-tasks.mjs +7 -2
- package/actions/invite-user-to-project/invite-user-to-project.mjs +7 -2
- package/actions/list-filters/list-filters.mjs +7 -2
- package/actions/list-labels/list-labels.mjs +9 -4
- package/actions/list-project-comments/list-project-comments.mjs +9 -4
- package/actions/list-projects/list-projects.mjs +9 -5
- package/actions/list-sections/list-sections.mjs +9 -4
- package/actions/list-task-comments/list-task-comments.mjs +9 -4
- package/actions/list-uncompleted-tasks/list-uncompleted-tasks.mjs +9 -4
- package/actions/mark-task-completed/mark-task-completed.mjs +7 -2
- package/actions/move-task-to-section/move-task-to-section.mjs +7 -2
- package/actions/search-tasks/search-tasks.mjs +11 -6
- package/actions/uncomplete-task/uncomplete-task.mjs +7 -2
- package/actions/update-comment/update-comment.mjs +7 -2
- package/actions/update-filter/update-filter.mjs +8 -5
- package/actions/update-label/update-label.mjs +8 -3
- package/actions/update-project/update-project.mjs +8 -3
- package/actions/update-section/update-section.mjs +7 -2
- package/actions/update-task/update-task.mjs +7 -2
- package/common/colors.mjs +50 -0
- package/package.json +2 -2
- package/sources/completed-task/completed-task.mjs +2 -2
- package/sources/incomplete-task/incomplete-task.mjs +14 -3
- package/sources/new-or-modified-project/new-or-modified-project.mjs +2 -2
- package/sources/new-or-modified-task/new-or-modified-task.mjs +2 -2
- package/sources/new-project/new-project.mjs +2 -2
- package/sources/new-section/new-section.mjs +2 -2
- package/sources/new-task/new-task.mjs +2 -2
- package/sources/sync-resources/sync-resources.mjs +2 -2
- package/todoist.app.mjs +48 -14
|
@@ -3,8 +3,13 @@ import todoist from "../../todoist.app.mjs";
|
|
|
3
3
|
export default {
|
|
4
4
|
key: "todoist-create-filter",
|
|
5
5
|
name: "Create Filter",
|
|
6
|
-
description: "Creates a filter. [See the
|
|
7
|
-
version: "0.0.
|
|
6
|
+
description: "Creates a filter. [See the documentation](https://developer.todoist.com/api/v1#tag/Sync/Filters/Add-a-filter)",
|
|
7
|
+
version: "0.0.5",
|
|
8
|
+
annotations: {
|
|
9
|
+
destructiveHint: true,
|
|
10
|
+
openWorldHint: true,
|
|
11
|
+
readOnlyHint: false,
|
|
12
|
+
},
|
|
8
13
|
type: "action",
|
|
9
14
|
props: {
|
|
10
15
|
todoist,
|
|
@@ -52,9 +57,7 @@ export default {
|
|
|
52
57
|
query,
|
|
53
58
|
color,
|
|
54
59
|
item_order: order,
|
|
55
|
-
is_favorite: favorite
|
|
56
|
-
? 1
|
|
57
|
-
: 0,
|
|
60
|
+
is_favorite: favorite,
|
|
58
61
|
};
|
|
59
62
|
const resp = await this.todoist.createFilter({
|
|
60
63
|
$,
|
|
@@ -3,8 +3,13 @@ import todoist from "../../todoist.app.mjs";
|
|
|
3
3
|
export default {
|
|
4
4
|
key: "todoist-create-label",
|
|
5
5
|
name: "Create Label",
|
|
6
|
-
description: "Creates a label. [See the
|
|
7
|
-
version: "0.0.
|
|
6
|
+
description: "Creates a label. [See the documentation](https://developer.todoist.com/api/v1#tag/Labels/operation/create_label_api_v1_labels_post)",
|
|
7
|
+
version: "0.0.5",
|
|
8
|
+
annotations: {
|
|
9
|
+
destructiveHint: false,
|
|
10
|
+
openWorldHint: true,
|
|
11
|
+
readOnlyHint: false,
|
|
12
|
+
},
|
|
8
13
|
type: "action",
|
|
9
14
|
props: {
|
|
10
15
|
todoist,
|
|
@@ -44,7 +49,7 @@ export default {
|
|
|
44
49
|
name,
|
|
45
50
|
order,
|
|
46
51
|
color,
|
|
47
|
-
favorite,
|
|
52
|
+
is_favorite: favorite,
|
|
48
53
|
};
|
|
49
54
|
const resp = await this.todoist.createLabel({
|
|
50
55
|
$,
|
|
@@ -3,8 +3,13 @@ import todoist from "../../todoist.app.mjs";
|
|
|
3
3
|
export default {
|
|
4
4
|
key: "todoist-create-project",
|
|
5
5
|
name: "Create Project",
|
|
6
|
-
description: "Creates a project. [See the
|
|
7
|
-
version: "0.0.
|
|
6
|
+
description: "Creates a project. [See the documentation](https://developer.todoist.com/api/v1#tag/Projects/operation/create_project_api_v1_projects_post)",
|
|
7
|
+
version: "0.0.5",
|
|
8
|
+
annotations: {
|
|
9
|
+
destructiveHint: false,
|
|
10
|
+
openWorldHint: true,
|
|
11
|
+
readOnlyHint: false,
|
|
12
|
+
},
|
|
8
13
|
type: "action",
|
|
9
14
|
props: {
|
|
10
15
|
todoist,
|
|
@@ -45,7 +50,7 @@ export default {
|
|
|
45
50
|
name,
|
|
46
51
|
parent_id: parent,
|
|
47
52
|
color,
|
|
48
|
-
favorite,
|
|
53
|
+
is_favorite: favorite,
|
|
49
54
|
};
|
|
50
55
|
const resp = await this.todoist.createProject({
|
|
51
56
|
$,
|
|
@@ -3,8 +3,13 @@ import todoist from "../../todoist.app.mjs";
|
|
|
3
3
|
export default {
|
|
4
4
|
key: "todoist-create-project-comment",
|
|
5
5
|
name: "Create Project Comment",
|
|
6
|
-
description: "Adds a comment to a project. [See the
|
|
7
|
-
version: "0.0.
|
|
6
|
+
description: "Adds a comment to a project. [See the documentation](https://developer.todoist.com/api/v1#tag/Comments/operation/create_comment_api_v1_comments_post)",
|
|
7
|
+
version: "0.0.5",
|
|
8
|
+
annotations: {
|
|
9
|
+
destructiveHint: false,
|
|
10
|
+
openWorldHint: true,
|
|
11
|
+
readOnlyHint: false,
|
|
12
|
+
},
|
|
8
13
|
type: "action",
|
|
9
14
|
props: {
|
|
10
15
|
todoist,
|
|
@@ -3,8 +3,13 @@ import todoist from "../../todoist.app.mjs";
|
|
|
3
3
|
export default {
|
|
4
4
|
key: "todoist-create-section",
|
|
5
5
|
name: "Create Section",
|
|
6
|
-
description: "Creates a section. [See the
|
|
7
|
-
version: "0.0.
|
|
6
|
+
description: "Creates a section. [See the documentation](https://developer.todoist.com/api/v1#tag/Sections/operation/create_section_api_v1_sections_post)",
|
|
7
|
+
version: "0.0.5",
|
|
8
|
+
annotations: {
|
|
9
|
+
destructiveHint: false,
|
|
10
|
+
openWorldHint: true,
|
|
11
|
+
readOnlyHint: false,
|
|
12
|
+
},
|
|
8
13
|
type: "action",
|
|
9
14
|
props: {
|
|
10
15
|
todoist,
|
|
@@ -3,11 +3,17 @@ import todoist from "../../todoist.app.mjs";
|
|
|
3
3
|
export default {
|
|
4
4
|
key: "todoist-create-task",
|
|
5
5
|
name: "Create Task",
|
|
6
|
-
description: "Creates a task. [See the
|
|
7
|
-
version: "0.0.
|
|
6
|
+
description: "Creates a task. [See the documentation](https://developer.todoist.com/api/v1#tag/Tasks/operation/create_task_api_v1_tasks_post)",
|
|
7
|
+
version: "0.0.7",
|
|
8
|
+
annotations: {
|
|
9
|
+
destructiveHint: false,
|
|
10
|
+
openWorldHint: true,
|
|
11
|
+
readOnlyHint: false,
|
|
12
|
+
},
|
|
8
13
|
type: "action",
|
|
9
14
|
props: {
|
|
10
15
|
todoist,
|
|
16
|
+
// eslint-disable-next-line pipedream/props-label, pipedream/props-description
|
|
11
17
|
recurringInfoLabel: {
|
|
12
18
|
type: "alert",
|
|
13
19
|
alertType: "info",
|
|
@@ -3,8 +3,13 @@ import todoist from "../../todoist.app.mjs";
|
|
|
3
3
|
export default {
|
|
4
4
|
key: "todoist-create-task-comment",
|
|
5
5
|
name: "Create Task Comment",
|
|
6
|
-
description: "Adds a comment to a task. [See the
|
|
7
|
-
version: "0.0.
|
|
6
|
+
description: "Adds a comment to a task. [See the documentation](https://developer.todoist.com/api/v1#tag/Comments/operation/create_comment_api_v1_comments_post)",
|
|
7
|
+
version: "0.0.5",
|
|
8
|
+
annotations: {
|
|
9
|
+
destructiveHint: false,
|
|
10
|
+
openWorldHint: true,
|
|
11
|
+
readOnlyHint: false,
|
|
12
|
+
},
|
|
8
13
|
type: "action",
|
|
9
14
|
props: {
|
|
10
15
|
todoist,
|
|
@@ -3,8 +3,13 @@ import todoist from "../../todoist.app.mjs";
|
|
|
3
3
|
export default {
|
|
4
4
|
key: "todoist-delete-comment",
|
|
5
5
|
name: "Delete Comment",
|
|
6
|
-
description: "Deletes a comment. [See the
|
|
7
|
-
version: "0.0.
|
|
6
|
+
description: "Deletes a comment. [See the documentation](https://developer.todoist.com/api/v1#tag/Comments/operation/delete_comment_api_v1_comments__comment_id__delete)",
|
|
7
|
+
version: "0.0.5",
|
|
8
|
+
annotations: {
|
|
9
|
+
destructiveHint: true,
|
|
10
|
+
openWorldHint: true,
|
|
11
|
+
readOnlyHint: false,
|
|
12
|
+
},
|
|
8
13
|
type: "action",
|
|
9
14
|
props: {
|
|
10
15
|
todoist,
|
|
@@ -3,8 +3,13 @@ import todoist from "../../todoist.app.mjs";
|
|
|
3
3
|
export default {
|
|
4
4
|
key: "todoist-delete-filter",
|
|
5
5
|
name: "Delete Filter",
|
|
6
|
-
description: "Deletes a filter. [See the
|
|
7
|
-
version: "0.0.
|
|
6
|
+
description: "Deletes a filter. [See the documentation](https://developer.todoist.com/api/v1#tag/Sync/Filters/Delete-a-filter)",
|
|
7
|
+
version: "0.0.5",
|
|
8
|
+
annotations: {
|
|
9
|
+
destructiveHint: true,
|
|
10
|
+
openWorldHint: true,
|
|
11
|
+
readOnlyHint: false,
|
|
12
|
+
},
|
|
8
13
|
type: "action",
|
|
9
14
|
props: {
|
|
10
15
|
todoist,
|
|
@@ -3,8 +3,13 @@ import todoist from "../../todoist.app.mjs";
|
|
|
3
3
|
export default {
|
|
4
4
|
key: "todoist-delete-label",
|
|
5
5
|
name: "Delete Label",
|
|
6
|
-
description: "Deletes a label. [See the
|
|
7
|
-
version: "0.0.
|
|
6
|
+
description: "Deletes a label. [See the documentation](https://developer.todoist.com/api/v1#tag/Labels/operation/delete_label_api_v1_labels__label_id__delete)",
|
|
7
|
+
version: "0.0.5",
|
|
8
|
+
annotations: {
|
|
9
|
+
destructiveHint: true,
|
|
10
|
+
openWorldHint: true,
|
|
11
|
+
readOnlyHint: false,
|
|
12
|
+
},
|
|
8
13
|
type: "action",
|
|
9
14
|
props: {
|
|
10
15
|
todoist,
|
|
@@ -3,8 +3,13 @@ import todoist from "../../todoist.app.mjs";
|
|
|
3
3
|
export default {
|
|
4
4
|
key: "todoist-delete-project",
|
|
5
5
|
name: "Delete Project",
|
|
6
|
-
description: "Deletes a project. [See the
|
|
7
|
-
version: "0.0.
|
|
6
|
+
description: "Deletes a project. [See the documentation](https://developer.todoist.com/api/v1#tag/Projects/operation/delete_project_api_v1_projects__project_id__delete)",
|
|
7
|
+
version: "0.0.5",
|
|
8
|
+
annotations: {
|
|
9
|
+
destructiveHint: true,
|
|
10
|
+
openWorldHint: true,
|
|
11
|
+
readOnlyHint: false,
|
|
12
|
+
},
|
|
8
13
|
type: "action",
|
|
9
14
|
props: {
|
|
10
15
|
todoist,
|
|
@@ -3,8 +3,13 @@ import todoist from "../../todoist.app.mjs";
|
|
|
3
3
|
export default {
|
|
4
4
|
key: "todoist-delete-section",
|
|
5
5
|
name: "Delete Section",
|
|
6
|
-
description: "Deletes a section. [See the
|
|
7
|
-
version: "0.0.
|
|
6
|
+
description: "Deletes a section. [See the documentation](https://developer.todoist.com/api/v1#tag/Sections/operation/delete_section_api_v1_sections__section_id__delete)",
|
|
7
|
+
version: "0.0.5",
|
|
8
|
+
annotations: {
|
|
9
|
+
destructiveHint: true,
|
|
10
|
+
openWorldHint: true,
|
|
11
|
+
readOnlyHint: false,
|
|
12
|
+
},
|
|
8
13
|
type: "action",
|
|
9
14
|
props: {
|
|
10
15
|
todoist,
|
|
@@ -3,8 +3,13 @@ import todoist from "../../todoist.app.mjs";
|
|
|
3
3
|
export default {
|
|
4
4
|
key: "todoist-delete-task",
|
|
5
5
|
name: "Delete Task",
|
|
6
|
-
description: "Deletes a task. [See the
|
|
7
|
-
version: "0.0.
|
|
6
|
+
description: "Deletes a task. [See the documentation](https://developer.todoist.com/api/v1#tag/Tasks/operation/delete_task_api_v1_tasks__task_id__delete)",
|
|
7
|
+
version: "0.0.5",
|
|
8
|
+
annotations: {
|
|
9
|
+
destructiveHint: true,
|
|
10
|
+
openWorldHint: true,
|
|
11
|
+
readOnlyHint: false,
|
|
12
|
+
},
|
|
8
13
|
type: "action",
|
|
9
14
|
props: {
|
|
10
15
|
todoist,
|
|
@@ -6,8 +6,13 @@ import converter from "json-2-csv";
|
|
|
6
6
|
export default {
|
|
7
7
|
key: "todoist-export-tasks",
|
|
8
8
|
name: "Export Tasks",
|
|
9
|
-
description: "Export project task names as comma separated file. Returns path to new file. [See
|
|
10
|
-
version: "0.1.
|
|
9
|
+
description: "Export project task names as comma separated file. Returns path to new file. [See the documentation](https://developer.todoist.com/api/v1#tag/Tasks/operation/get_tasks_api_v1_tasks_get)",
|
|
10
|
+
version: "0.1.3",
|
|
11
|
+
annotations: {
|
|
12
|
+
destructiveHint: false,
|
|
13
|
+
openWorldHint: true,
|
|
14
|
+
readOnlyHint: true,
|
|
15
|
+
},
|
|
11
16
|
type: "action",
|
|
12
17
|
props: {
|
|
13
18
|
todoist,
|
|
@@ -26,20 +31,20 @@ export default {
|
|
|
26
31
|
async run ({ $ }) {
|
|
27
32
|
const { project } = this;
|
|
28
33
|
|
|
29
|
-
const
|
|
34
|
+
const resp = await this.todoist.getActiveTasks({
|
|
30
35
|
$,
|
|
31
36
|
params: {
|
|
32
37
|
project_id: project,
|
|
33
38
|
},
|
|
34
39
|
});
|
|
35
|
-
const csv = converter.json2csv(
|
|
40
|
+
const csv = converter.json2csv(resp?.results);
|
|
36
41
|
|
|
37
42
|
const { path } = await file({
|
|
38
43
|
postfix: ".csv",
|
|
39
44
|
});
|
|
40
45
|
await fs.promises.appendFile(path, Buffer.from(csv));
|
|
41
46
|
|
|
42
|
-
$.export("$summary", `Successfully exported ${
|
|
47
|
+
$.export("$summary", `Successfully exported ${resp?.results?.length} task${resp?.results?.length === 1
|
|
43
48
|
? ""
|
|
44
49
|
: "s"} to "${path}"`);
|
|
45
50
|
return path;
|
|
@@ -3,8 +3,13 @@ import todoist from "../../todoist.app.mjs";
|
|
|
3
3
|
export default {
|
|
4
4
|
key: "todoist-find-project",
|
|
5
5
|
name: "Find Project",
|
|
6
|
-
description: "Finds a project (by name/title). [See
|
|
7
|
-
version: "0.0.
|
|
6
|
+
description: "Finds a project (by name/title). [See the documentation](https://developer.todoist.com/api/v1#tag/Projects/operation/get_projects_api_v1_projects_get) Optionally, create one if none are found. [See the documentation](https://developer.todoist.com/api/v1#tag/Projects/operation/create_project_api_v1_projects_post)",
|
|
7
|
+
version: "0.0.5",
|
|
8
|
+
annotations: {
|
|
9
|
+
destructiveHint: false,
|
|
10
|
+
openWorldHint: true,
|
|
11
|
+
readOnlyHint: true,
|
|
12
|
+
},
|
|
8
13
|
type: "action",
|
|
9
14
|
props: {
|
|
10
15
|
todoist,
|
|
@@ -3,8 +3,13 @@ import todoist from "../../todoist.app.mjs";
|
|
|
3
3
|
export default {
|
|
4
4
|
key: "todoist-find-task",
|
|
5
5
|
name: "Find Task",
|
|
6
|
-
description: "Finds a task by name. [See
|
|
7
|
-
version: "0.0.
|
|
6
|
+
description: "Finds a task by name. [See the documentation](https://developer.todoist.com/api/v1#tag/Tasks/operation/get_tasks_api_v1_tasks_get) Optionally, create one if none are found. [See the documentation](https://developer.todoist.com/api/v1#tag/Tasks/operation/create_task_api_v1_tasks_post)",
|
|
7
|
+
version: "0.0.5",
|
|
8
|
+
annotations: {
|
|
9
|
+
destructiveHint: false,
|
|
10
|
+
openWorldHint: true,
|
|
11
|
+
readOnlyHint: true,
|
|
12
|
+
},
|
|
8
13
|
type: "action",
|
|
9
14
|
props: {
|
|
10
15
|
todoist,
|
|
@@ -34,13 +39,13 @@ export default {
|
|
|
34
39
|
content,
|
|
35
40
|
createIfNotFound,
|
|
36
41
|
} = this;
|
|
37
|
-
const
|
|
42
|
+
const resp = await this.todoist.getActiveTasks({
|
|
38
43
|
$,
|
|
39
44
|
params: {
|
|
40
45
|
project_id: project,
|
|
41
46
|
},
|
|
42
47
|
});
|
|
43
|
-
let result =
|
|
48
|
+
let result = resp?.results?.find((task) => task?.content == content);
|
|
44
49
|
let summary = result
|
|
45
50
|
? "Task found"
|
|
46
51
|
: "Task not found";
|
|
@@ -3,8 +3,13 @@ import todoist from "../../todoist.app.mjs";
|
|
|
3
3
|
export default {
|
|
4
4
|
key: "todoist-find-user",
|
|
5
5
|
name: "Find User",
|
|
6
|
-
description: "Searches by email for a user who is connected/shared with your account. [See the
|
|
7
|
-
version: "0.0.
|
|
6
|
+
description: "Searches by email for a user who is connected/shared with your account. [See the documentation](https://developer.todoist.com/api/v1#tag/Sync/Overview/Read-resources)",
|
|
7
|
+
version: "0.0.5",
|
|
8
|
+
annotations: {
|
|
9
|
+
destructiveHint: true,
|
|
10
|
+
openWorldHint: true,
|
|
11
|
+
readOnlyHint: false,
|
|
12
|
+
},
|
|
8
13
|
type: "action",
|
|
9
14
|
props: {
|
|
10
15
|
todoist,
|
|
@@ -3,8 +3,13 @@ import todoist from "../../todoist.app.mjs";
|
|
|
3
3
|
export default {
|
|
4
4
|
key: "todoist-get-label",
|
|
5
5
|
name: "Get Label",
|
|
6
|
-
description: "Returns info about a label. [See the
|
|
7
|
-
version: "0.0.
|
|
6
|
+
description: "Returns info about a label. [See the documentation](https://developer.todoist.com/api/v1#tag/Labels/operation/get_label_api_v1_labels__label_id__get)",
|
|
7
|
+
version: "0.0.5",
|
|
8
|
+
annotations: {
|
|
9
|
+
destructiveHint: false,
|
|
10
|
+
openWorldHint: true,
|
|
11
|
+
readOnlyHint: true,
|
|
12
|
+
},
|
|
8
13
|
type: "action",
|
|
9
14
|
props: {
|
|
10
15
|
todoist,
|
|
@@ -3,8 +3,13 @@ import todoist from "../../todoist.app.mjs";
|
|
|
3
3
|
export default {
|
|
4
4
|
key: "todoist-get-project",
|
|
5
5
|
name: "Get Project",
|
|
6
|
-
description: "Returns info about a project. [See the
|
|
7
|
-
version: "0.0.
|
|
6
|
+
description: "Returns info about a project. [See the documentation](https://developer.todoist.com/api/v1#tag/Projects/operation/get_project_api_v1_projects__project_id__get)",
|
|
7
|
+
version: "0.0.5",
|
|
8
|
+
annotations: {
|
|
9
|
+
destructiveHint: false,
|
|
10
|
+
openWorldHint: true,
|
|
11
|
+
readOnlyHint: true,
|
|
12
|
+
},
|
|
8
13
|
type: "action",
|
|
9
14
|
props: {
|
|
10
15
|
todoist,
|
|
@@ -3,8 +3,13 @@ import todoist from "../../todoist.app.mjs";
|
|
|
3
3
|
export default {
|
|
4
4
|
key: "todoist-get-project-comment",
|
|
5
5
|
name: "Get Project Comment",
|
|
6
|
-
description: "Returns info about a project comment. [See the
|
|
7
|
-
version: "0.0.
|
|
6
|
+
description: "Returns info about a project comment. [See the documentation](https://developer.todoist.com/api/v1#tag/Comments/operation/get_comment_api_v1_comments__comment_id__get)",
|
|
7
|
+
version: "0.0.5",
|
|
8
|
+
annotations: {
|
|
9
|
+
destructiveHint: false,
|
|
10
|
+
openWorldHint: true,
|
|
11
|
+
readOnlyHint: false,
|
|
12
|
+
},
|
|
8
13
|
type: "action",
|
|
9
14
|
props: {
|
|
10
15
|
todoist,
|
|
@@ -3,8 +3,13 @@ import todoist from "../../todoist.app.mjs";
|
|
|
3
3
|
export default {
|
|
4
4
|
key: "todoist-get-section",
|
|
5
5
|
name: "Get Section",
|
|
6
|
-
description: "Returns info about a section. [See the
|
|
7
|
-
version: "0.0.
|
|
6
|
+
description: "Returns info about a section. [See the documentation](https://developer.todoist.com/api/v1#tag/Sections/operation/get_section_api_v1_sections__section_id__get)",
|
|
7
|
+
version: "0.0.5",
|
|
8
|
+
annotations: {
|
|
9
|
+
destructiveHint: false,
|
|
10
|
+
openWorldHint: true,
|
|
11
|
+
readOnlyHint: true,
|
|
12
|
+
},
|
|
8
13
|
type: "action",
|
|
9
14
|
props: {
|
|
10
15
|
todoist,
|
|
@@ -3,8 +3,13 @@ import todoist from "../../todoist.app.mjs";
|
|
|
3
3
|
export default {
|
|
4
4
|
key: "todoist-get-task",
|
|
5
5
|
name: "Get Task",
|
|
6
|
-
description: "Returns info about a task. [See the
|
|
7
|
-
version: "0.0.
|
|
6
|
+
description: "Returns info about a task. [See the documentation](https://developer.todoist.com/api/v1#tag/Tasks/operation/get_task_api_v1_tasks__task_id__get)",
|
|
7
|
+
version: "0.0.5",
|
|
8
|
+
annotations: {
|
|
9
|
+
destructiveHint: false,
|
|
10
|
+
openWorldHint: true,
|
|
11
|
+
readOnlyHint: true,
|
|
12
|
+
},
|
|
8
13
|
type: "action",
|
|
9
14
|
props: {
|
|
10
15
|
todoist,
|
|
@@ -3,8 +3,13 @@ import todoist from "../../todoist.app.mjs";
|
|
|
3
3
|
export default {
|
|
4
4
|
key: "todoist-get-task-comment",
|
|
5
5
|
name: "Get Task Comment",
|
|
6
|
-
description: "Returns info about a task comment. [See the
|
|
7
|
-
version: "0.0.
|
|
6
|
+
description: "Returns info about a task comment. [See the documentation](https://developer.todoist.com/api/v1#tag/Comments/operation/get_comment_api_v1_comments__comment_id__get)",
|
|
7
|
+
version: "0.0.5",
|
|
8
|
+
annotations: {
|
|
9
|
+
destructiveHint: false,
|
|
10
|
+
openWorldHint: true,
|
|
11
|
+
readOnlyHint: false,
|
|
12
|
+
},
|
|
8
13
|
type: "action",
|
|
9
14
|
props: {
|
|
10
15
|
todoist,
|
|
@@ -5,8 +5,13 @@ import { getFileStream } from "@pipedream/platform";
|
|
|
5
5
|
export default {
|
|
6
6
|
key: "todoist-import-tasks",
|
|
7
7
|
name: "Import Tasks",
|
|
8
|
-
description: "Import tasks into a selected project. [See
|
|
9
|
-
version: "0.1.
|
|
8
|
+
description: "Import tasks into a selected project. [See the documentation](https://developer.todoist.com/api/v1#tag/Tasks/operation/create_task_api_v1_tasks_post)",
|
|
9
|
+
version: "0.1.3",
|
|
10
|
+
annotations: {
|
|
11
|
+
destructiveHint: true,
|
|
12
|
+
openWorldHint: true,
|
|
13
|
+
readOnlyHint: false,
|
|
14
|
+
},
|
|
10
15
|
type: "action",
|
|
11
16
|
props: {
|
|
12
17
|
todoist,
|
|
@@ -3,8 +3,13 @@ import todoist from "../../todoist.app.mjs";
|
|
|
3
3
|
export default {
|
|
4
4
|
key: "todoist-invite-user-to-project",
|
|
5
5
|
name: "Invite User To Project",
|
|
6
|
-
description: "Sends email to a person, inviting them to use one of your projects. [See the
|
|
7
|
-
version: "0.0.
|
|
6
|
+
description: "Sends email to a person, inviting them to use one of your projects. [See the documentation](https://developer.todoist.com/api/v1#tag/Sync/Sharing/Share-a-project)",
|
|
7
|
+
version: "0.0.5",
|
|
8
|
+
annotations: {
|
|
9
|
+
destructiveHint: true,
|
|
10
|
+
openWorldHint: true,
|
|
11
|
+
readOnlyHint: false,
|
|
12
|
+
},
|
|
8
13
|
type: "action",
|
|
9
14
|
props: {
|
|
10
15
|
todoist,
|
|
@@ -3,8 +3,13 @@ import todoist from "../../todoist.app.mjs";
|
|
|
3
3
|
export default {
|
|
4
4
|
key: "todoist-list-filters",
|
|
5
5
|
name: "List Filters",
|
|
6
|
-
description: "Returns a list of all filters. [See the
|
|
7
|
-
version: "0.0.
|
|
6
|
+
description: "Returns a list of all filters. [See the documentation](https://developer.todoist.com/api/v1#tag/Sync/Overview/Read-resources)",
|
|
7
|
+
version: "0.0.5",
|
|
8
|
+
annotations: {
|
|
9
|
+
destructiveHint: true,
|
|
10
|
+
openWorldHint: true,
|
|
11
|
+
readOnlyHint: false,
|
|
12
|
+
},
|
|
8
13
|
type: "action",
|
|
9
14
|
props: {
|
|
10
15
|
todoist,
|
|
@@ -3,8 +3,13 @@ import todoist from "../../todoist.app.mjs";
|
|
|
3
3
|
export default {
|
|
4
4
|
key: "todoist-list-labels",
|
|
5
5
|
name: "List Labels",
|
|
6
|
-
description: "Returns a list of all labels. [See the
|
|
7
|
-
version: "0.0.
|
|
6
|
+
description: "Returns a list of all labels. [See the documentation](https://developer.todoist.com/api/v1#tag/Labels/operation/get_labels_api_v1_labels_get)",
|
|
7
|
+
version: "0.0.5",
|
|
8
|
+
annotations: {
|
|
9
|
+
destructiveHint: false,
|
|
10
|
+
openWorldHint: true,
|
|
11
|
+
readOnlyHint: true,
|
|
12
|
+
},
|
|
8
13
|
type: "action",
|
|
9
14
|
props: {
|
|
10
15
|
todoist,
|
|
@@ -13,9 +18,9 @@ export default {
|
|
|
13
18
|
const resp = await this.todoist.getLabels({
|
|
14
19
|
$,
|
|
15
20
|
});
|
|
16
|
-
$.export("$summary", `Successfully retrieved ${resp
|
|
21
|
+
$.export("$summary", `Successfully retrieved ${resp?.results?.length} label${resp?.results?.length === 1
|
|
17
22
|
? ""
|
|
18
23
|
: "s"}`);
|
|
19
|
-
return resp;
|
|
24
|
+
return resp?.results;
|
|
20
25
|
},
|
|
21
26
|
};
|
|
@@ -3,8 +3,13 @@ import todoist from "../../todoist.app.mjs";
|
|
|
3
3
|
export default {
|
|
4
4
|
key: "todoist-list-project-comments",
|
|
5
5
|
name: "List Project Comments",
|
|
6
|
-
description: "Returns a list of comments for a project. [See the
|
|
7
|
-
version: "0.0.
|
|
6
|
+
description: "Returns a list of comments for a project. [See the documentation](https://developer.todoist.com/api/v1#tag/Comments/operation/get_comments_api_v1_comments_get)",
|
|
7
|
+
version: "0.0.5",
|
|
8
|
+
annotations: {
|
|
9
|
+
destructiveHint: false,
|
|
10
|
+
openWorldHint: true,
|
|
11
|
+
readOnlyHint: true,
|
|
12
|
+
},
|
|
8
13
|
type: "action",
|
|
9
14
|
props: {
|
|
10
15
|
todoist,
|
|
@@ -24,9 +29,9 @@ export default {
|
|
|
24
29
|
$,
|
|
25
30
|
params,
|
|
26
31
|
});
|
|
27
|
-
$.export("$summary", `Successfully retrieved ${resp
|
|
32
|
+
$.export("$summary", `Successfully retrieved ${resp?.results?.length} comment${resp?.results?.length === 1
|
|
28
33
|
? ""
|
|
29
34
|
: "s"}`);
|
|
30
|
-
return resp;
|
|
35
|
+
return resp?.results;
|
|
31
36
|
},
|
|
32
37
|
};
|
|
@@ -3,8 +3,13 @@ import todoist from "../../todoist.app.mjs";
|
|
|
3
3
|
export default {
|
|
4
4
|
key: "todoist-list-projects",
|
|
5
5
|
name: "List Projects",
|
|
6
|
-
description: "Returns a list of all projects. [See the
|
|
7
|
-
version: "0.0.
|
|
6
|
+
description: "Returns a list of all projects. [See the documentation](https://developer.todoist.com/api/v1#tag/Projects/operation/get_projects_api_v1_projects_get)",
|
|
7
|
+
version: "0.0.5",
|
|
8
|
+
annotations: {
|
|
9
|
+
destructiveHint: false,
|
|
10
|
+
openWorldHint: true,
|
|
11
|
+
readOnlyHint: true,
|
|
12
|
+
},
|
|
8
13
|
type: "action",
|
|
9
14
|
props: {
|
|
10
15
|
todoist,
|
|
@@ -13,10 +18,9 @@ export default {
|
|
|
13
18
|
const resp = await this.todoist.getProjects({
|
|
14
19
|
$,
|
|
15
20
|
});
|
|
16
|
-
$.export("$summary",
|
|
17
|
-
$.export("$summary", `Successfully retrieved ${resp.length} project${resp.length === 1
|
|
21
|
+
$.export("$summary", `Successfully retrieved ${resp?.results?.length} project${resp?.results?.length === 1
|
|
18
22
|
? ""
|
|
19
23
|
: "s"}`);
|
|
20
|
-
return resp;
|
|
24
|
+
return resp?.results;
|
|
21
25
|
},
|
|
22
26
|
};
|
|
@@ -3,8 +3,13 @@ import todoist from "../../todoist.app.mjs";
|
|
|
3
3
|
export default {
|
|
4
4
|
key: "todoist-list-sections",
|
|
5
5
|
name: "List Sections",
|
|
6
|
-
description: "Returns a list of all sections. [See the
|
|
7
|
-
version: "0.0.
|
|
6
|
+
description: "Returns a list of all sections. [See the documentation](https://developer.todoist.com/api/v1#tag/Sections/operation/get_sections_api_v1_sections_get)",
|
|
7
|
+
version: "0.0.5",
|
|
8
|
+
annotations: {
|
|
9
|
+
destructiveHint: false,
|
|
10
|
+
openWorldHint: true,
|
|
11
|
+
readOnlyHint: true,
|
|
12
|
+
},
|
|
8
13
|
type: "action",
|
|
9
14
|
props: {
|
|
10
15
|
todoist,
|
|
@@ -23,9 +28,9 @@ export default {
|
|
|
23
28
|
$,
|
|
24
29
|
params,
|
|
25
30
|
});
|
|
26
|
-
$.export("$summary", `Successfully retrieved ${resp
|
|
31
|
+
$.export("$summary", `Successfully retrieved ${resp?.results?.length} section${resp?.results?.length === 1
|
|
27
32
|
? ""
|
|
28
33
|
: "s"}`);
|
|
29
|
-
return resp;
|
|
34
|
+
return resp?.results;
|
|
30
35
|
},
|
|
31
36
|
};
|