@pipedream/todoist 0.0.4 → 0.1.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.
Files changed (53) hide show
  1. package/LICENSE +41 -7
  2. package/actions/create-filter/create-filter.mjs +1 -1
  3. package/actions/create-label/create-label.mjs +1 -1
  4. package/actions/create-project/create-project.mjs +1 -1
  5. package/actions/create-project-comment/create-project-comment.mjs +1 -1
  6. package/actions/create-section/create-section.mjs +1 -1
  7. package/actions/create-task/create-task.mjs +3 -6
  8. package/actions/create-task-comment/create-task-comment.mjs +1 -1
  9. package/actions/delete-comment/delete-comment.mjs +1 -1
  10. package/actions/delete-filter/delete-filter.mjs +1 -1
  11. package/actions/delete-label/delete-label.mjs +1 -1
  12. package/actions/delete-project/delete-project.mjs +1 -1
  13. package/actions/delete-section/delete-section.mjs +1 -1
  14. package/actions/delete-task/delete-task.mjs +1 -1
  15. package/actions/export-tasks/export-tasks.mjs +1 -1
  16. package/actions/find-project/find-project.mjs +1 -1
  17. package/actions/find-task/find-task.mjs +1 -1
  18. package/actions/find-user/find-user.mjs +1 -1
  19. package/actions/get-label/get-label.mjs +1 -1
  20. package/actions/get-project/get-project.mjs +1 -1
  21. package/actions/get-project-comment/get-project-comment.mjs +1 -1
  22. package/actions/get-section/get-section.mjs +1 -1
  23. package/actions/get-task/get-task.mjs +1 -1
  24. package/actions/get-task-comment/get-task-comment.mjs +1 -1
  25. package/actions/import-tasks/import-tasks.mjs +1 -1
  26. package/actions/invite-user-to-project/invite-user-to-project.mjs +1 -1
  27. package/actions/list-filters/list-filters.mjs +1 -1
  28. package/actions/list-labels/list-labels.mjs +1 -1
  29. package/actions/list-project-comments/list-project-comments.mjs +1 -1
  30. package/actions/list-projects/list-projects.mjs +1 -1
  31. package/actions/list-sections/list-sections.mjs +1 -1
  32. package/actions/list-task-comments/list-task-comments.mjs +1 -1
  33. package/actions/list-uncompleted-tasks/list-uncompleted-tasks.mjs +1 -1
  34. package/actions/mark-task-completed/mark-task-completed.mjs +1 -1
  35. package/actions/move-task-to-section/move-task-to-section.mjs +1 -1
  36. package/actions/search-tasks/search-tasks.mjs +64 -0
  37. package/actions/uncomplete-task/uncomplete-task.mjs +1 -1
  38. package/actions/update-comment/update-comment.mjs +1 -1
  39. package/actions/update-filter/update-filter.mjs +1 -1
  40. package/actions/update-label/update-label.mjs +1 -1
  41. package/actions/update-project/update-project.mjs +1 -1
  42. package/actions/update-section/update-section.mjs +1 -1
  43. package/actions/update-task/update-task.mjs +3 -6
  44. package/package.json +1 -1
  45. package/sources/completed-task/completed-task.mjs +1 -1
  46. package/sources/incomplete-task/incomplete-task.mjs +1 -1
  47. package/sources/new-or-modified-project/new-or-modified-project.mjs +1 -1
  48. package/sources/new-or-modified-task/new-or-modified-task.mjs +1 -1
  49. package/sources/new-project/new-project.mjs +1 -1
  50. package/sources/new-section/new-section.mjs +1 -1
  51. package/sources/new-task/new-task.mjs +1 -1
  52. package/sources/sync-resources/sync-resources.mjs +1 -1
  53. package/todoist.app.mjs +9 -0
package/LICENSE CHANGED
@@ -1,7 +1,41 @@
1
- Copyright 2020 Pipedream, Inc.
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
-
5
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6
-
7
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1
+ Pipedream Source Available License Version 1.0
2
+
3
+ This Pipedream Source Available License Agreement Version 1.0 (this “Agreement”) sets forth the terms on which Pipedream, Inc., a Delaware corporation (“Pipedream”) makes available certain software (the Software). By installing, downloading, accessing, using or distributing the Software, you agree to the terms of this Agreement. If you do not agree to such terms, you must not use the Software. If you are receiving the Software on behalf of a legal entity, you represent and warrant that you have the actual authority to agree to the terms and conditions of this Agreement on behalf of such entity. “Licensee” means you, an individual, or the entity on whose behalf you are receiving the Software.
4
+
5
+ LICENSE GRANT AND CONDITIONS.
6
+
7
+ 1.1 License. Subject to the terms and conditions of this Agreement, Pipedream hereby grants to Licensee a non-exclusive, royalty-free, worldwide, non-transferable, non-sublicenseable license during the term of this Agreement to use, prepare modifications and derivative works, distribute (including without limitation in source code or object code form) and reproduce copies of the Software (the “License”). Licensee is not granted the right to, and Licensee shall not, exercise the License for an Excluded Purpose. For purposes of this Agreement, “Excluded Purpose” means any commercial use of the software including, but not limited to, making available any software-as-a-service, platform-as-a-service, infrastructure-as-a-service or other online service that competes with the Software or any other Pipedream products or services.
8
+
9
+ 1.2 Conditions. In consideration of the License, Licensee’s distribution of the Software is subject to the following conditions:
10
+
11
+ a. Licensee must cause any Software modified by Licensee to carry prominent notices stating that Licensee modified the Software.
12
+
13
+ b. On each Software copy, Licensee shall reproduce and not remove or alter all Pipedream or third party copyright or other proprietary notices contained in the Software, and Licensee must provide this with each copy: “This software is made available by Pipedream, Inc., under the terms of the Pipedream Source Available License, Version 1.0 located at https://github.com/PipedreamHQ/pipedream/blob/master/LICENSE. By installing, downloading, accessing, using or distributing the Software, you agree to the terms of such License Agreement.”
14
+
15
+ 1.3 Modifications. Licensee may add its own copyright notices to modifications made by Licensee and may provide additional or different license terms and conditions for use, reproduction, or distribution of Licensee’s modifications. While redistributing the Software or modifications thereof, Licensee may choose to offer, for a fee or free of charge, support, warranty, indemnity, or other obligations. Licensee, and not Pipedream, will be responsible for any such obligations.
16
+
17
+ 1.4 No Sublicensing. The License does not include the right to sublicense the Software; provided, however, that any recipient to which Licensee provides the Software may exercise the License so long as such recipient agrees to the terms and conditions of this Agreement.
18
+
19
+ TERM AND TERMINATION.
20
+
21
+ This Agreement will continue unless and until earlier terminated as set forth herein. If Licensee breaches any of its conditions or obligations under this Agreement, this Agreement will terminate automatically and the License will terminate automatically and permanently.
22
+
23
+ INTELLECTUAL PROPERTY.
24
+
25
+ As between the parties, Pipedream retains all right, title, and interest in the Software, and all intellectual property rights therein. Pipedream hereby reserves all rights not expressly granted to Licensee in this Agreement. Pipedream reserves all rights in its trademarks and service marks, and no licenses thereto are granted by this Agreement.
26
+
27
+ DISCLAIMER.
28
+
29
+ PIPEDREAM HEREBY DISCLAIMS ANY AND ALL WARRANTIES AND CONDITIONS, EXPRESS, IMPLIED, STATUTORY, OR OTHERWISE, AND SPECIFICALLY DISCLAIMS ANY WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, WITH RESPECT TO THE SOFTWARE.
30
+
31
+ LIMITATION OF LIABILITY.
32
+
33
+ PIPEDREAM WILL NOT BE LIABLE FOR ANY DAMAGES OF ANY KIND, INCLUDING BUT NOT LIMITED TO, LOST PROFITS OR ANY CONSEQUENTIAL, SPECIAL, INCIDENTAL, INDIRECT, OR DIRECT DAMAGES, HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, ARISING OUT OF THIS AGREEMENT. THE FOREGOING SHALL APPLY TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW.
34
+
35
+ GENERAL.
36
+
37
+ 6.1 Governing Law. This Agreement will be governed by and interpreted in accordance with the laws of the state of California, without reference to its conflict of laws principles. If Licensee is located outside of the United States, any dispute, controversy or claim arising out of or relating to this Agreement will be referred to and finally determined by arbitration in accordance with the JAMS International Arbitration Rules. The tribunal will consist of one arbitrator. Judgment upon the award rendered by the arbitrator may be entered in any court having jurisdiction thereof. All disputes including arbitrations shall take place in Santa Clara County, California. The language to be used in any such proceedings shall be English.
38
+
39
+ 6.2. Assignment. Licensee is not authorized to assign its rights under this Agreement to any third party. Pipedream may freely assign its rights under this Agreement to any third party.
40
+
41
+ 6.3. Other. This Agreement is the entire agreement between the parties regarding the subject matter hereof. No amendment or modification of this Agreement will be valid or binding upon the parties unless made in writing and signed by the duly authorized representatives of both parties. In the event that any provision, including without limitation any condition, of this Agreement is held to be unenforceable, this Agreement and all licenses and rights granted hereunder will immediately terminate. Waiver by Pipedream of a breach of any provision of this Agreement or the failure by Pipedream to exercise any right hereunder will not be construed as a waiver of any subsequent breach of that right or as a waiver of any other right.
@@ -4,7 +4,7 @@ export default {
4
4
  key: "todoist-create-filter",
5
5
  name: "Create Filter",
6
6
  description: "Creates a filter. [See the docs here](https://developer.todoist.com/sync/v9/#add-a-filter)",
7
- version: "0.0.2",
7
+ version: "0.0.3",
8
8
  type: "action",
9
9
  props: {
10
10
  todoist,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "todoist-create-label",
5
5
  name: "Create Label",
6
6
  description: "Creates a label. [See the docs here](https://developer.todoist.com/rest/v2/#create-a-new-personal-label)",
7
- version: "0.0.2",
7
+ version: "0.0.3",
8
8
  type: "action",
9
9
  props: {
10
10
  todoist,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "todoist-create-project",
5
5
  name: "Create Project",
6
6
  description: "Creates a project. [See the docs here](https://developer.todoist.com/rest/v2/#create-a-new-project)",
7
- version: "0.0.2",
7
+ version: "0.0.3",
8
8
  type: "action",
9
9
  props: {
10
10
  todoist,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "todoist-create-project-comment",
5
5
  name: "Create Project Comment",
6
6
  description: "Adds a comment to a project. [See the docs here](https://developer.todoist.com/rest/v2/#create-a-new-comment)",
7
- version: "0.0.2",
7
+ version: "0.0.3",
8
8
  type: "action",
9
9
  props: {
10
10
  todoist,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "todoist-create-section",
5
5
  name: "Create Section",
6
6
  description: "Creates a section. [See the docs here](https://developer.todoist.com/rest/v2/#create-a-new-section)",
7
- version: "0.0.2",
7
+ version: "0.0.3",
8
8
  type: "action",
9
9
  props: {
10
10
  todoist,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "todoist-create-task",
5
5
  name: "Create Task",
6
6
  description: "Creates a task. [See the docs here](https://developer.todoist.com/rest/v2/#create-a-new-task)",
7
- version: "0.0.2",
7
+ version: "0.0.3",
8
8
  type: "action",
9
9
  props: {
10
10
  todoist,
@@ -63,11 +63,8 @@ export default {
63
63
  labels: {
64
64
  propDefinition: [
65
65
  todoist,
66
- "label",
66
+ "labelString",
67
67
  ],
68
- type: "string[]",
69
- description: "Labels associated with the task",
70
- optional: true,
71
68
  },
72
69
  priority: {
73
70
  propDefinition: [
@@ -132,7 +129,7 @@ export default {
132
129
  section_id: section,
133
130
  parent_id: parent,
134
131
  order,
135
- label_ids: labels,
132
+ labels,
136
133
  priority,
137
134
  due_string: dueString,
138
135
  due_date: dueDate,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "todoist-create-task-comment",
5
5
  name: "Create Task Comment",
6
6
  description: "Adds a comment to a task. [See the docs here](https://developer.todoist.com/rest/v2/#create-a-new-comment)",
7
- version: "0.0.2",
7
+ version: "0.0.3",
8
8
  type: "action",
9
9
  props: {
10
10
  todoist,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "todoist-delete-comment",
5
5
  name: "Delete Comment",
6
6
  description: "Deletes a comment. [See the docs here](https://developer.todoist.com/rest/v2/#delete-a-comment)",
7
- version: "0.0.2",
7
+ version: "0.0.3",
8
8
  type: "action",
9
9
  props: {
10
10
  todoist,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "todoist-delete-filter",
5
5
  name: "Delete Filter",
6
6
  description: "Deletes a filter. [See the docs here](https://developer.todoist.com/sync/v9/#delete-a-filter)",
7
- version: "0.0.2",
7
+ version: "0.0.3",
8
8
  type: "action",
9
9
  props: {
10
10
  todoist,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "todoist-delete-label",
5
5
  name: "Delete Label",
6
6
  description: "Deletes a label. [See the docs here](https://developer.todoist.com/rest/v2/#delete-a-personal-label)",
7
- version: "0.0.2",
7
+ version: "0.0.3",
8
8
  type: "action",
9
9
  props: {
10
10
  todoist,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "todoist-delete-project",
5
5
  name: "Delete Project",
6
6
  description: "Deletes a project. [See the docs here](https://developer.todoist.com/rest/v2/#delete-a-project)",
7
- version: "0.0.2",
7
+ version: "0.0.3",
8
8
  type: "action",
9
9
  props: {
10
10
  todoist,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "todoist-delete-section",
5
5
  name: "Delete Section",
6
6
  description: "Deletes a section. [See the docs here](https://developer.todoist.com/rest/v2/#delete-a-section)",
7
- version: "0.0.2",
7
+ version: "0.0.3",
8
8
  type: "action",
9
9
  props: {
10
10
  todoist,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "todoist-delete-task",
5
5
  name: "Delete Task",
6
6
  description: "Deletes a task. [See the docs here](https://developer.todoist.com/rest/v2/#delete-a-task)",
7
- version: "0.0.2",
7
+ version: "0.0.3",
8
8
  type: "action",
9
9
  props: {
10
10
  todoist,
@@ -7,7 +7,7 @@ export default {
7
7
  key: "todoist-export-tasks",
8
8
  name: "Export Tasks",
9
9
  description: "Export project task names as comma separated file. Returns path to new file. [See Docs](https://developer.todoist.com/rest/v2/#get-active-tasks)",
10
- version: "0.0.2",
10
+ version: "0.0.3",
11
11
  type: "action",
12
12
  props: {
13
13
  todoist,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "todoist-find-project",
5
5
  name: "Find Project",
6
6
  description: "Finds a project (by name/title). [See Docs](https://developer.todoist.com/rest/v2/#get-all-projects) Optionally, create one if none are found. [See Docs](https://developer.todoist.com/rest/v2/#create-a-new-project)",
7
- version: "0.0.2",
7
+ version: "0.0.3",
8
8
  type: "action",
9
9
  props: {
10
10
  todoist,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "todoist-find-task",
5
5
  name: "Find Task",
6
6
  description: "Finds a task by name. [See Docs](https://developer.todoist.com/rest/v2/#get-active-tasks) Optionally, create one if none are found. [See Docs](https://developer.todoist.com/rest/v2/#create-a-new-task)",
7
- version: "0.0.2",
7
+ version: "0.0.3",
8
8
  type: "action",
9
9
  props: {
10
10
  todoist,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "todoist-find-user",
5
5
  name: "Find User",
6
6
  description: "Searches by email for a user who is connected/shared with your account. [See the docs here](https://developer.todoist.com/sync/v9/#read-resources)",
7
- version: "0.0.2",
7
+ version: "0.0.3",
8
8
  type: "action",
9
9
  props: {
10
10
  todoist,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "todoist-get-label",
5
5
  name: "Get Label",
6
6
  description: "Returns info about a label. [See the docs here](https://developer.todoist.com/rest/v2/#get-a-personal-label)",
7
- version: "0.0.2",
7
+ version: "0.0.3",
8
8
  type: "action",
9
9
  props: {
10
10
  todoist,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "todoist-get-project",
5
5
  name: "Get Project",
6
6
  description: "Returns info about a project. [See the docs here](https://developer.todoist.com/rest/v2/#get-a-project)",
7
- version: "0.0.2",
7
+ version: "0.0.3",
8
8
  type: "action",
9
9
  props: {
10
10
  todoist,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "todoist-get-project-comment",
5
5
  name: "Get Project Comment",
6
6
  description: "Returns info about a project comment. [See the docs here](https://developer.todoist.com/rest/v2/#get-a-comment)",
7
- version: "0.0.2",
7
+ version: "0.0.3",
8
8
  type: "action",
9
9
  props: {
10
10
  todoist,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "todoist-get-section",
5
5
  name: "Get Section",
6
6
  description: "Returns info about a section. [See the docs here](https://developer.todoist.com/rest/v2/#get-a-single-section)",
7
- version: "0.0.2",
7
+ version: "0.0.3",
8
8
  type: "action",
9
9
  props: {
10
10
  todoist,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "todoist-get-task",
5
5
  name: "Get Task",
6
6
  description: "Returns info about a task. [See the docs here](https://developer.todoist.com/rest/v2/#get-an-active-task)",
7
- version: "0.0.2",
7
+ version: "0.0.3",
8
8
  type: "action",
9
9
  props: {
10
10
  todoist,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "todoist-get-task-comment",
5
5
  name: "Get Task Comment",
6
6
  description: "Returns info about a task comment. [See the docs here](https://developer.todoist.com/rest/v2/#get-a-comment)",
7
- version: "0.0.2",
7
+ version: "0.0.3",
8
8
  type: "action",
9
9
  props: {
10
10
  todoist,
@@ -6,7 +6,7 @@ export default {
6
6
  key: "todoist-import-tasks",
7
7
  name: "Import Tasks",
8
8
  description: "Import tasks into a selected project. [See Docs](https://developer.todoist.com/sync/v9/#add-an-item)",
9
- version: "0.0.2",
9
+ version: "0.0.3",
10
10
  type: "action",
11
11
  props: {
12
12
  todoist,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "todoist-invite-user-to-project",
5
5
  name: "Invite User To Project",
6
6
  description: "Sends email to a person, inviting them to use one of your projects. [See the docs here](https://developer.todoist.com/sync/v9/#share-a-project)",
7
- version: "0.0.2",
7
+ version: "0.0.3",
8
8
  type: "action",
9
9
  props: {
10
10
  todoist,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "todoist-list-filters",
5
5
  name: "List Filters",
6
6
  description: "Returns a list of all filters. [See the docs here](https://developer.todoist.com/sync/v9/#read-resources)",
7
- version: "0.0.2",
7
+ version: "0.0.3",
8
8
  type: "action",
9
9
  props: {
10
10
  todoist,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "todoist-list-labels",
5
5
  name: "List Labels",
6
6
  description: "Returns a list of all labels. [See the docs here](https://developer.todoist.com/rest/v2/#get-all-personal-labels)",
7
- version: "0.0.2",
7
+ version: "0.0.3",
8
8
  type: "action",
9
9
  props: {
10
10
  todoist,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "todoist-list-project-comments",
5
5
  name: "List Project Comments",
6
6
  description: "Returns a list of comments for a project. [See the docs here](https://developer.todoist.com/rest/v2/#get-all-comments)",
7
- version: "0.0.2",
7
+ version: "0.0.3",
8
8
  type: "action",
9
9
  props: {
10
10
  todoist,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "todoist-list-projects",
5
5
  name: "List Projects",
6
6
  description: "Returns a list of all projects. [See the docs here](https://developer.todoist.com/rest/v2/#get-all-projects)",
7
- version: "0.0.2",
7
+ version: "0.0.3",
8
8
  type: "action",
9
9
  props: {
10
10
  todoist,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "todoist-list-sections",
5
5
  name: "List Sections",
6
6
  description: "Returns a list of all sections. [See the docs here](https://developer.todoist.com/rest/v2/#get-all-sections)",
7
- version: "0.0.2",
7
+ version: "0.0.3",
8
8
  type: "action",
9
9
  props: {
10
10
  todoist,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "todoist-list-task-comments",
5
5
  name: "List Task Comments",
6
6
  description: "Returns a list of comments for a task. [See the docs here](https://developer.todoist.com/rest/v2/#get-all-comments)",
7
- version: "0.0.2",
7
+ version: "0.0.3",
8
8
  type: "action",
9
9
  props: {
10
10
  todoist,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "todoist-list-uncompleted-tasks",
5
5
  name: "List Uncompleted Tasks",
6
6
  description: "Returns a list of uncompleted tasks by project, section, and/or label. [See the docs here](https://developer.todoist.com/rest/v2/#get-active-tasks)",
7
- version: "0.0.2",
7
+ version: "0.0.3",
8
8
  type: "action",
9
9
  props: {
10
10
  todoist,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "todoist-mark-task-completed",
5
5
  name: "Mark Task as Completed",
6
6
  description: "Marks a task as being completed. [See the docs here](https://developer.todoist.com/rest/v2/#close-a-task)",
7
- version: "0.0.2",
7
+ version: "0.0.3",
8
8
  type: "action",
9
9
  props: {
10
10
  todoist,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "todoist-move-task-to-section",
5
5
  name: "Move Task To Section",
6
6
  description: "Move a Task to a different section within the same project. [See the docs here](https://developer.todoist.com/sync/v9/#move-an-item)",
7
- version: "0.0.2",
7
+ version: "0.0.3",
8
8
  type: "action",
9
9
  props: {
10
10
  todoist,
@@ -0,0 +1,64 @@
1
+ import todoist from "../../todoist.app.mjs";
2
+
3
+ export default {
4
+ key: "todoist-search-tasks",
5
+ name: "Search Tasks",
6
+ description: "Search tasks by name, label, project and/or section. [See Docs](https://developer.todoist.com/rest/v2/#get-active-tasks)",
7
+ version: "0.0.1",
8
+ type: "action",
9
+ props: {
10
+ todoist,
11
+ name: {
12
+ type: "string",
13
+ label: "Name Match",
14
+ description: "Returns tasks that contain the specified string in their name",
15
+ optional: true,
16
+ },
17
+ label: {
18
+ propDefinition: [
19
+ todoist,
20
+ "labelString",
21
+ ],
22
+ type: "string",
23
+ label: "Label",
24
+ description: "Select a label to filter results by"
25
+ },
26
+ project: {
27
+ propDefinition: [
28
+ todoist,
29
+ "project",
30
+ ],
31
+ },
32
+ section: {
33
+ propDefinition: [
34
+ todoist,
35
+ "section",
36
+ (c) => ({
37
+ project: c.project,
38
+ }),
39
+ ],
40
+ },
41
+ },
42
+ async run ({ $ }) {
43
+ const {
44
+ name,
45
+ label,
46
+ project,
47
+ section,
48
+ } = this;
49
+ const tasks = await this.todoist.getActiveTasks({
50
+ $,
51
+ params: {
52
+ label,
53
+ project_id: project,
54
+ section_id: section,
55
+ },
56
+ });
57
+ let result = name ? tasks.filter((task) => task.content.includes(name)) : tasks;
58
+ let summary = `${result.length} task${result.length == 1
59
+ ? ""
60
+ : "s"} found`;
61
+ $.export("$summary", summary);
62
+ return result;
63
+ },
64
+ };
@@ -4,7 +4,7 @@ export default {
4
4
  key: "todoist-uncomplete-task",
5
5
  name: "Uncomplete Task",
6
6
  description: "Uncompletes a task. [See the docs here](https://developer.todoist.com/rest/v2/#reopen-a-task)",
7
- version: "0.0.2",
7
+ version: "0.0.3",
8
8
  type: "action",
9
9
  props: {
10
10
  todoist,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "todoist-update-comment",
5
5
  name: "Update Comment",
6
6
  description: "Updates a comment. [See the docs here](https://developer.todoist.com/rest/v2/#update-a-comment)",
7
- version: "0.0.2",
7
+ version: "0.0.3",
8
8
  type: "action",
9
9
  props: {
10
10
  todoist,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "todoist-update-filter",
5
5
  name: "Update Filter",
6
6
  description: "Updates a filter. [See the docs here](https://developer.todoist.com/sync/v9/#update-a-filter)",
7
- version: "0.0.2",
7
+ version: "0.0.3",
8
8
  type: "action",
9
9
  props: {
10
10
  todoist,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "todoist-update-label",
5
5
  name: "Update Label",
6
6
  description: "Updates a label. [See the docs here](https://developer.todoist.com/rest/v2/#update-a-personal-label)",
7
- version: "0.0.2",
7
+ version: "0.0.3",
8
8
  type: "action",
9
9
  props: {
10
10
  todoist,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "todoist-update-project",
5
5
  name: "Update Project",
6
6
  description: "Updates a project. [See the docs here](https://developer.todoist.com/rest/v2/#update-a-project)",
7
- version: "0.0.2",
7
+ version: "0.0.3",
8
8
  type: "action",
9
9
  props: {
10
10
  todoist,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "todoist-update-section",
5
5
  name: "Update Section",
6
6
  description: "Updates a section. [See the docs here](https://developer.todoist.com/rest/v2/#update-a-section)",
7
- version: "0.0.2",
7
+ version: "0.0.3",
8
8
  type: "action",
9
9
  props: {
10
10
  todoist,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "todoist-update-task",
5
5
  name: "Update Task",
6
6
  description: "Updates a task. [See the docs here](https://developer.todoist.com/rest/v2/#update-a-task)",
7
- version: "0.0.2",
7
+ version: "0.0.3",
8
8
  type: "action",
9
9
  props: {
10
10
  todoist,
@@ -41,11 +41,8 @@ export default {
41
41
  labels: {
42
42
  propDefinition: [
43
43
  todoist,
44
- "label",
44
+ "labelString",
45
45
  ],
46
- type: "string[]",
47
- description: "Labels associated with the task",
48
- optional: true,
49
46
  },
50
47
  priority: {
51
48
  propDefinition: [
@@ -104,7 +101,7 @@ export default {
104
101
  taskId: task,
105
102
  content,
106
103
  description,
107
- label_ids: labels,
104
+ labels,
108
105
  priority,
109
106
  due_string: dueString,
110
107
  due_date: dueDate,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pipedream/todoist",
3
- "version": "0.0.4",
3
+ "version": "0.1.0",
4
4
  "description": "Pipedream Todoist Components",
5
5
  "main": "todoist.app.mjs",
6
6
  "keywords": [
@@ -5,7 +5,7 @@ export default {
5
5
  key: "todoist-completed-task",
6
6
  name: "New Completed Task",
7
7
  description: "Emit new event for each completed task. [See the docs here](https://developer.todoist.com/sync/v8/#read-resources)",
8
- version: "0.0.5",
8
+ version: "0.0.6",
9
9
  type: "source",
10
10
  dedupe: "unique",
11
11
  methods: {
@@ -5,7 +5,7 @@ export default {
5
5
  key: "todoist-incomplete-task",
6
6
  name: "New Incomplete Task",
7
7
  description: "Emit new event for each new incomplete task. [See the docs here](https://developer.todoist.com/sync/v8/#read-resources)",
8
- version: "0.0.5",
8
+ version: "0.0.6",
9
9
  type: "source",
10
10
  dedupe: "unique",
11
11
  methods: {
@@ -5,6 +5,6 @@ export default {
5
5
  key: "todoist-new-or-modified-project",
6
6
  name: "New or Modified Project",
7
7
  description: "Emit new event for each new or modified project. [See the docs here](https://developer.todoist.com/sync/v8/#read-resources)",
8
- version: "0.0.5",
8
+ version: "0.0.6",
9
9
  type: "source",
10
10
  };
@@ -5,6 +5,6 @@ export default {
5
5
  key: "todoist-new-or-modified-task",
6
6
  name: "New or Modified Task",
7
7
  description: "Emit new event for each new or modified task. [See the docs here](https://developer.todoist.com/sync/v8/#read-resources)",
8
- version: "0.0.5",
8
+ version: "0.0.6",
9
9
  type: "source",
10
10
  };
@@ -5,7 +5,7 @@ export default {
5
5
  key: "todoist-new-project",
6
6
  name: "New Project",
7
7
  description: "Emit new event for each new project. [See the docs here](https://developer.todoist.com/sync/v8/#read-resources)",
8
- version: "0.0.5",
8
+ version: "0.0.6",
9
9
  type: "source",
10
10
  dedupe: "greatest",
11
11
  };
@@ -5,7 +5,7 @@ export default {
5
5
  key: "todoist-new-section",
6
6
  name: "New Section",
7
7
  description: "Emit new event for each new section added. [See the docs here](https://developer.todoist.com/sync/v8/#read-resources)",
8
- version: "0.0.5",
8
+ version: "0.0.6",
9
9
  type: "source",
10
10
  dedupe: "greatest",
11
11
  methods: {
@@ -5,7 +5,7 @@ export default {
5
5
  key: "todoist-new-task",
6
6
  name: "New Task",
7
7
  description: "Emit new event for each new task. [See the docs here](https://developer.todoist.com/sync/v8/#read-resources)",
8
- version: "0.0.5",
8
+ version: "0.0.6",
9
9
  type: "source",
10
10
  dedupe: "greatest",
11
11
  };
@@ -5,7 +5,7 @@ export default {
5
5
  key: "todoist-sync-resources",
6
6
  name: "New Sync Resources",
7
7
  description: "Emit new updates for your selected resources. [See the docs here](https://developer.todoist.com/sync/v8/#read-resources)",
8
- version: "0.0.5",
8
+ version: "0.0.6",
9
9
  type: "source",
10
10
  props: {
11
11
  ...common.props,
package/todoist.app.mjs CHANGED
@@ -70,6 +70,15 @@ export default {
70
70
  }));
71
71
  },
72
72
  },
73
+ labelString: {
74
+ type: "string[]",
75
+ label: "Labels",
76
+ description: "Select labels to add to the task.",
77
+ optional: true,
78
+ async options() {
79
+ return (await this.getLabels({})).map((label) => label.name);
80
+ },
81
+ },
73
82
  task: {
74
83
  type: "string",
75
84
  label: "Task",