@pipedream/asana 0.8.1 → 0.9.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 (32) hide show
  1. package/actions/add-task-to-section/add-task-to-section.mjs +2 -2
  2. package/actions/create-project/create-project.mjs +1 -1
  3. package/actions/create-subtask/create-subtask.mjs +1 -1
  4. package/actions/create-task/create-task.mjs +1 -1
  5. package/actions/create-task-comment/create-task-comment.mjs +1 -1
  6. package/actions/create-task-from-template/create-task-from-template.mjs +1 -1
  7. package/actions/delete-task/delete-task.mjs +1 -1
  8. package/actions/find-task-by-id/find-task-by-id.mjs +1 -1
  9. package/actions/get-tasks-from-task-list/get-tasks-from-task-list.mjs +1 -1
  10. package/actions/list-task-stories/list-task-stories.mjs +1 -1
  11. package/actions/search-projects/search-projects.mjs +1 -1
  12. package/actions/search-sections/search-sections.mjs +1 -1
  13. package/actions/search-tasks/search-tasks.mjs +1 -1
  14. package/actions/search-tasks-premium/search-tasks-premium.mjs +92 -0
  15. package/actions/search-user-projects/search-user-projects.mjs +1 -1
  16. package/actions/update-task/update-task.mjs +2 -2
  17. package/asana.app.mjs +16 -0
  18. package/package.json +3 -3
  19. package/sources/new-completed-task/new-completed-task.mjs +1 -1
  20. package/sources/new-project/new-project.mjs +1 -1
  21. package/sources/new-story/new-story.mjs +1 -1
  22. package/sources/new-subtask/new-subtask.mjs +1 -1
  23. package/sources/new-tag/new-tag.mjs +1 -1
  24. package/sources/new-task/new-task.mjs +1 -1
  25. package/sources/new-team/new-team.mjs +1 -1
  26. package/sources/new-user/new-user.mjs +1 -1
  27. package/sources/new-workspace/new-workspace.mjs +1 -1
  28. package/sources/tag-added-to-task/tag-added-to-task.mjs +1 -1
  29. package/sources/tags-added-to-any-task/tags-added-to-any-task.mjs +1 -1
  30. package/sources/task-assigned-in-project/task-assigned-in-project.mjs +1 -1
  31. package/sources/task-field-updated-in-project/task-field-updated-in-project.mjs +1 -1
  32. package/sources/task-updated-in-project/task-updated-in-project.mjs +1 -1
@@ -5,9 +5,9 @@ export default {
5
5
  name: "Add Task To Section",
6
6
  description: "Add a task to a specific, existing section. This will remove the task from other sections of the project. [See the documentation](https://developers.asana.com/docs/add-task-to-section)",
7
7
  key: "asana-add-task-to-section",
8
- version: "0.2.11",
8
+ version: "0.2.12",
9
9
  annotations: {
10
- destructiveHint: true,
10
+ destructiveHint: false,
11
11
  openWorldHint: true,
12
12
  readOnlyHint: false,
13
13
  },
@@ -5,7 +5,7 @@ export default {
5
5
  key: "asana-create-project",
6
6
  name: "Create Project",
7
7
  description: "Create a new project in a workspace or team. [See the documentation](https://developers.asana.com/docs/create-a-project)",
8
- version: "0.10.4",
8
+ version: "0.10.6",
9
9
  annotations: {
10
10
  destructiveHint: false,
11
11
  openWorldHint: true,
@@ -5,7 +5,7 @@ export default {
5
5
  key: "asana-create-subtask",
6
6
  name: "Create Subtask",
7
7
  description: "Creates a new subtask and adds it to the parent task. [See the documentation](https://developers.asana.com/docs/create-a-subtask)",
8
- version: "0.4.4",
8
+ version: "0.4.5",
9
9
  annotations: {
10
10
  destructiveHint: false,
11
11
  openWorldHint: true,
@@ -5,7 +5,7 @@ export default {
5
5
  key: "asana-create-task",
6
6
  name: "Create Task",
7
7
  description: "Creates a new task. [See the documentation](https://developers.asana.com/docs/create-a-task)",
8
- version: "0.4.4",
8
+ version: "0.4.5",
9
9
  annotations: {
10
10
  destructiveHint: false,
11
11
  openWorldHint: true,
@@ -5,7 +5,7 @@ export default {
5
5
  key: "asana-create-task-comment",
6
6
  name: "Create Task Comment",
7
7
  description: "Adds a comment to a task. [See the documentation](https://developers.asana.com/docs/create-a-story-on-a-task)",
8
- version: "0.2.11",
8
+ version: "0.2.12",
9
9
  annotations: {
10
10
  destructiveHint: false,
11
11
  openWorldHint: true,
@@ -4,7 +4,7 @@ export default {
4
4
  name: "Create Task from Template",
5
5
  key: "asana-create-task-from-template",
6
6
  description: "Creates a new task from a task template. [See the documentation](https://developers.asana.com/reference/instantiatetask)",
7
- version: "0.0.6",
7
+ version: "0.0.7",
8
8
  annotations: {
9
9
  destructiveHint: false,
10
10
  openWorldHint: true,
@@ -5,7 +5,7 @@ export default {
5
5
  key: "asana-delete-task",
6
6
  name: "Delete Task",
7
7
  description: "Deletes a specific and existing task. [See the documentation](https://developers.asana.com/docs/delete-a-task)",
8
- version: "0.0.12",
8
+ version: "0.0.13",
9
9
  annotations: {
10
10
  destructiveHint: true,
11
11
  openWorldHint: true,
@@ -5,7 +5,7 @@ export default {
5
5
  key: "asana-find-task-by-id",
6
6
  name: "Find Task by ID",
7
7
  description: "Searches for a task by id. Returns the complete task record for a single task. [See the documentation](https://developers.asana.com/docs/get-a-task)",
8
- version: "0.2.11",
8
+ version: "0.2.12",
9
9
  annotations: {
10
10
  destructiveHint: false,
11
11
  openWorldHint: true,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "asana-get-tasks-from-task-list",
5
5
  name: "Get Tasks From Task List",
6
6
  description: "Returns the compact list of tasks in a user’s My Tasks list. [See the documentation](https://developers.asana.com/reference/gettasksforusertasklist)",
7
- version: "0.0.9",
7
+ version: "0.0.10",
8
8
  annotations: {
9
9
  destructiveHint: false,
10
10
  openWorldHint: true,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "asana-list-task-stories",
5
5
  name: "List Task Stories",
6
6
  description: "List stories (including comments) for a task. [See the documentation](https://developers.asana.com/reference/getstoriesfortask)",
7
- version: "0.0.2",
7
+ version: "0.0.3",
8
8
  annotations: {
9
9
  destructiveHint: false,
10
10
  openWorldHint: true,
@@ -3,7 +3,7 @@ import asana from "../../asana.app.mjs";
3
3
  export default {
4
4
  type: "action",
5
5
  key: "asana-search-projects",
6
- version: "0.2.11",
6
+ version: "0.2.12",
7
7
  annotations: {
8
8
  destructiveHint: false,
9
9
  openWorldHint: true,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "asana-search-sections",
5
5
  name: "Search Sections",
6
6
  description: "Searches for a section by name within a particular project. [See the documentation](https://developers.asana.com/docs/get-sections-in-a-project)",
7
- version: "0.2.11",
7
+ version: "0.2.12",
8
8
  annotations: {
9
9
  destructiveHint: false,
10
10
  openWorldHint: true,
@@ -6,7 +6,7 @@ export default {
6
6
  key: "asana-search-tasks",
7
7
  name: "Search Tasks",
8
8
  description: "Searches for a Task by name within a Project. [See the documentation](https://developers.asana.com/docs/get-multiple-tasks)",
9
- version: "0.3.5",
9
+ version: "0.3.6",
10
10
  annotations: {
11
11
  destructiveHint: false,
12
12
  openWorldHint: true,
@@ -0,0 +1,92 @@
1
+ import asana from "../../asana.app.mjs";
2
+ import common from "../common/common.mjs";
3
+
4
+ export default {
5
+ key: "asana-search-tasks-premium",
6
+ name: "Search Tasks Premium",
7
+ description: "Searches for a task by name, assignee, section, project, completed since, and modified since. Requires a Premium Asana account. [See the documentation](https://developers.asana.com/reference/searchtasksforworkspace)",
8
+ version: "0.0.1",
9
+ annotations: {
10
+ destructiveHint: false,
11
+ openWorldHint: true,
12
+ readOnlyHint: true,
13
+ },
14
+ type: "action",
15
+ props: {
16
+ asana,
17
+ info: {
18
+ type: "alert",
19
+ alertType: "info",
20
+ content: "This action requires a Premium Asana account. [See the documentation](https://developers.asana.com/reference/searchtasksforworkspace)",
21
+ },
22
+ ...common.props,
23
+ project: {
24
+ ...common.props.project,
25
+ optional: true,
26
+ },
27
+ name: {
28
+ label: "Name",
29
+ description: "The task name to search for",
30
+ type: "string",
31
+ optional: true,
32
+ },
33
+ assignee: {
34
+ label: "Assignee",
35
+ description: "The assignee to filter tasks on",
36
+ type: "string",
37
+ optional: true,
38
+ propDefinition: [
39
+ asana,
40
+ "users",
41
+ ({ workspace }) => ({
42
+ workspace,
43
+ }),
44
+ ],
45
+ },
46
+ section: {
47
+ label: "Section",
48
+ type: "string",
49
+ description: "Section GID used to filter tasks (for example: `1200123456789013`). Provide `project` so valid section IDs can be resolved.",
50
+ optional: true,
51
+ propDefinition: [
52
+ asana,
53
+ "sections",
54
+ (c) => ({
55
+ project: c.project,
56
+ }),
57
+ ],
58
+ },
59
+ completedSince: {
60
+ label: "Completed Since",
61
+ type: "string",
62
+ description: "Only return tasks that are either incomplete or completed since this time. ISO 8601 format (for example: `2026-04-14` or `2026-04-14T00:00:00Z`).",
63
+ optional: true,
64
+ },
65
+ modifiedSince: {
66
+ label: "Modified Since",
67
+ type: "string",
68
+ description: "Only return tasks modified since this time. ISO 8601 format (for example: `2026-04-14` or `2026-04-14T00:00:00Z`).",
69
+ optional: true,
70
+ },
71
+ },
72
+ async run({ $ }) {
73
+ const params = {
74
+ "completed_on.after": this.completedSince,
75
+ "modified_at.after": this.modifiedSince,
76
+ "assignee.any": this.assignee,
77
+ "sections.any": this.section,
78
+ "projects.any": this.project,
79
+ "text": this.name,
80
+ };
81
+
82
+ const { data: tasks } = await this.asana.searchTasks({
83
+ workspace: this.workspace,
84
+ params,
85
+ $,
86
+ });
87
+
88
+ $.export("$summary", "Successfully retrieved tasks");
89
+
90
+ return tasks;
91
+ },
92
+ };
@@ -5,7 +5,7 @@ export default {
5
5
  key: "asana-search-user-projects",
6
6
  name: "Get list of user projects",
7
7
  description: "Return list of projects given the user and workspace gid. [See the documentation](https://developers.asana.com/docs/get-multiple-projects)",
8
- version: "0.5.4",
8
+ version: "0.5.5",
9
9
  annotations: {
10
10
  destructiveHint: false,
11
11
  openWorldHint: true,
@@ -5,9 +5,9 @@ export default {
5
5
  key: "asana-update-task",
6
6
  name: "Update Task",
7
7
  description: "Updates a specific and existing task. [See the documentation](https://developers.asana.com/docs/update-a-task)",
8
- version: "0.4.4",
8
+ version: "0.4.5",
9
9
  annotations: {
10
- destructiveHint: true,
10
+ destructiveHint: false,
11
11
  openWorldHint: true,
12
12
  readOnlyHint: false,
13
13
  },
package/asana.app.mjs CHANGED
@@ -460,6 +460,22 @@ export default {
460
460
  ...opts,
461
461
  });
462
462
  },
463
+ /**
464
+ * Search for tasks in a workspace.
465
+ *
466
+ * @param {string} workspace - The workspace GID.
467
+ * @param {object} opts - The params to filter tasks.
468
+ *
469
+ * @returns {string} An Asana Task list.
470
+ */
471
+ searchTasks({
472
+ workspace, ...opts
473
+ }) {
474
+ return this._makeRequest({
475
+ path: `workspaces/${workspace}/tasks/search`,
476
+ ...opts,
477
+ });
478
+ },
463
479
  /**
464
480
  * Get an Asana Section list.
465
481
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pipedream/asana",
3
- "version": "0.8.1",
3
+ "version": "0.9.0",
4
4
  "description": "Pipedream Asana Components",
5
5
  "main": "asana.app.mjs",
6
6
  "keywords": [
@@ -10,8 +10,8 @@
10
10
  "homepage": "https://pipedream.com/apps/asana",
11
11
  "author": "Pipedream <support@pipedream.com> (https://pipedream.com/)",
12
12
  "dependencies": {
13
- "@pipedream/platform": "^3.0.3",
14
- "lodash": "^4.17.21"
13
+ "@pipedream/platform": "^3.1.1",
14
+ "lodash": "^4.18.1"
15
15
  },
16
16
  "gitHead": "e12480b94cc03bed4808ebc6b13e7fdb3a1ba535",
17
17
  "publishConfig": {
@@ -7,7 +7,7 @@ export default {
7
7
  type: "source",
8
8
  name: "New Completed Task (Instant)",
9
9
  description: "Emit new event for each task completed in a project.",
10
- version: "0.1.10",
10
+ version: "0.1.11",
11
11
  dedupe: "unique",
12
12
  props: {
13
13
  ...common.props,
@@ -6,7 +6,7 @@ export default {
6
6
  key: "asana-new-project",
7
7
  name: "New Project Added To Workspace (Instant)",
8
8
  description: "Emit new event for each new project added to a workspace.",
9
- version: "0.1.10",
9
+ version: "0.1.11",
10
10
  dedupe: "unique",
11
11
  props: {
12
12
  ...common.props,
@@ -7,7 +7,7 @@ export default {
7
7
  type: "source",
8
8
  name: "New Story Added To Project (Instant)",
9
9
  description: "Emit new event for each story added to a project.",
10
- version: "0.1.10",
10
+ version: "0.1.11",
11
11
  dedupe: "unique",
12
12
  props: {
13
13
  ...common.props,
@@ -7,7 +7,7 @@ export default {
7
7
  type: "source",
8
8
  name: "New Subtask (Instant)",
9
9
  description: "Emit new event for each subtask added to a project.",
10
- version: "1.0.10",
10
+ version: "1.0.11",
11
11
  dedupe: "unique",
12
12
  props: {
13
13
  ...common.props,
@@ -6,7 +6,7 @@ export default {
6
6
  type: "source",
7
7
  name: "New Tag",
8
8
  description: "Emit new event for each tag created in a workspace.",
9
- version: "0.0.12",
9
+ version: "0.0.13",
10
10
  dedupe: "unique",
11
11
  props: {
12
12
  asana,
@@ -7,7 +7,7 @@ export default {
7
7
  type: "source",
8
8
  name: "New Task (Instant)",
9
9
  description: "Emit new event for each task added to a project. [See docs here](https://developers.asana.com/docs/establish-a-webhook)",
10
- version: "0.1.10",
10
+ version: "0.1.11",
11
11
  dedupe: "unique",
12
12
  props: {
13
13
  ...common.props,
@@ -6,7 +6,7 @@ export default {
6
6
  type: "source",
7
7
  name: "New Team",
8
8
  description: "Emit new event for each team added to an organization.",
9
- version: "0.1.11",
9
+ version: "0.1.12",
10
10
  dedupe: "unique",
11
11
  props: {
12
12
  asana,
@@ -6,7 +6,7 @@ export default {
6
6
  type: "source",
7
7
  name: "New User (Instant)",
8
8
  description: "Emit new event for each user added to a workspace.",
9
- version: "0.1.10",
9
+ version: "0.1.11",
10
10
  dedupe: "unique",
11
11
  props: {
12
12
  ...common.props,
@@ -6,7 +6,7 @@ export default {
6
6
  key: "asana-new-workspace",
7
7
  name: "New Workspace Added",
8
8
  description: "Emit new event each time you add a new workspace/organization.",
9
- version: "0.1.11",
9
+ version: "0.1.12",
10
10
  dedupe: "unique",
11
11
  props: {
12
12
  asana,
@@ -7,7 +7,7 @@ export default {
7
7
  type: "source",
8
8
  name: "New Tag Added To Task (Instant)",
9
9
  description: "Emit new event for each new tag added to a task.",
10
- version: "0.1.10",
10
+ version: "0.1.11",
11
11
  dedupe: "unique",
12
12
  props: {
13
13
  ...common.props,
@@ -7,7 +7,7 @@ export default {
7
7
  type: "source",
8
8
  name: "New Tags added to any task (Instant)",
9
9
  description: "Emit new event each time a tag is added to any task, optionally filtering by a given set of tags.",
10
- version: "0.0.9",
10
+ version: "0.0.10",
11
11
  dedupe: "unique",
12
12
  props: {
13
13
  ...common.props,
@@ -7,7 +7,7 @@ export default {
7
7
  type: "source",
8
8
  name: "New Task Assigned in Project (Instant)",
9
9
  description: "Emit new event each time a task is assigned, reassigned or unassigned.",
10
- version: "0.1.3",
10
+ version: "0.1.4",
11
11
  dedupe: "unique",
12
12
  props: {
13
13
  ...common.props,
@@ -7,7 +7,7 @@ export default {
7
7
  type: "source",
8
8
  name: "New Task Field Updated In Project (Instant)",
9
9
  description: "Emit new event whenever given task fields are updated.",
10
- version: "0.0.9",
10
+ version: "0.0.10",
11
11
  dedupe: "unique",
12
12
  props: {
13
13
  ...common.props,
@@ -7,7 +7,7 @@ export default {
7
7
  type: "source",
8
8
  name: "New Task Updated In Project (Instant)",
9
9
  description: "Emit new event for each update to a task.",
10
- version: "1.1.9",
10
+ version: "1.1.10",
11
11
  dedupe: "unique",
12
12
  props: {
13
13
  ...common.props,